complaintdetail.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="comdetail">
  3. <view class="cdbox">
  4. <view class="cdtop">
  5. <view class="tit">小区电梯老化</view>
  6. <view class="txt">2024-11-18 08:16</view>
  7. </view>
  8. <view class="cdmain">
  9. <view class="tit">小区电梯时常发生问题,请物业派维修人员进行安全检 查,若无法排除问题,建议更换小区的电梯设备,避免 后期发生人员伤害!</view>
  10. <view class="imgs">
  11. <image :src="mbg"></image>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="cdbtns">
  16. <view class="btna">不予公开</view>
  17. <view class="btnb" @click="getReplyFn">回复</view>
  18. </view>
  19. <pop-up :type="type" @getClose='getClose' @getSure="getSure"></pop-up>
  20. <loading></loading>
  21. </view>
  22. </template>
  23. <script>
  24. import config from '@/config'
  25. const baseUrl = config.baseUrl
  26. import popUp from "@/work/components/popup/popup.vue"
  27. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  28. export default{
  29. components:{popUp},
  30. data(){
  31. return{
  32. mbg:require('@/work/static/service/bxbg.png'),
  33. baseUrl:config.baseUrl,
  34. type:'',
  35. }
  36. },
  37. onLoad: function() {
  38. },
  39. methods:{
  40. checkPermi, checkRole,
  41. getClose(){
  42. this.type='';
  43. },
  44. getSure(){
  45. this.type='';
  46. },
  47. getReplyFn(){
  48. this.type='reply'
  49. },
  50. getPreviewImage(arr,idx){
  51. var newArr=[];
  52. arr.forEach(ite=>{
  53. var ds=this.baseUrl+ite
  54. newArr.push(ds)
  55. })
  56. uni.previewImage({
  57. urls: newArr,
  58. current:idx,
  59. success: function(data) {
  60. },
  61. fail: function(err) {
  62. }
  63. });
  64. },
  65. }
  66. }
  67. </script>
  68. <style>
  69. page{background: #F3F3F0;}
  70. </style>
  71. <style lang="scss" scoped>
  72. .comdetail{padding:20rpx 18rpx 110rpx;
  73. .cdbox{background: #FFFFFF;border-radius: 20rpx;padding: 0 32rpx;box-sizing: border-box;
  74. .cdtop{padding: 34rpx 0rpx 24rpx;border-bottom: 2rpx solid #CDCDCD;
  75. .tit{font-weight: bold;font-size: 30rpx;color: #272727;margin-bottom: 16rpx;}
  76. .txt{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  77. }
  78. .cdmain{padding: 24rpx 0 24rpx;
  79. .tit{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;margin-bottom: 30rpx;}
  80. .imgs{display: flex;align-items: center;flex-wrap: wrap;
  81. image{width: 142rpx;height: 142rpx;border-radius: 20rpx;margin: 0 18rpx 18rpx 0;}
  82. }
  83. }
  84. }
  85. .cdbtns{position: fixed;left: 0;right: 0;height: 98rpx;z-index: 2;display: flex;align-items: center;bottom: 0;
  86. view{flex: 1;display: flex;align-items: center;justify-content: center;font-weight: bold;font-size: 26rpx;height: 98rpx;
  87. &.btna{background: #FFFFFF;color: #0156FE;}
  88. &.btnb{background: #0156FE;color: #FFFFFF;}
  89. }
  90. }
  91. }
  92. </style>