imList.vue 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <view class="">
  3. <view class="list" @tap="caseDetail" v-if="defalutVal.pendingStatus !== 1 ">
  4. <view class="listItem">
  5. <view class="lable">
  6. 案件编号:
  7. </view>
  8. <view class="main">
  9. {{defalutVal.caseNum}}
  10. </view>
  11. </view>
  12. <view class="listItem" v-if="sysType == 1">
  13. <view class="lable">
  14. 申请人姓名:
  15. </view>
  16. <view class="main">
  17. {{defalutVal.applicantName}}
  18. </view>
  19. </view>
  20. <view class="listItem" v-if="sysType == 2">
  21. <view class="lable">
  22. 申请人姓名:
  23. </view>
  24. <view class="main">
  25. {{defalutVal.applicationName}}
  26. </view>
  27. </view>
  28. <view class="listItem" style="margin-top:22rpx">
  29. <view class="lable">
  30. 被申请人姓名:
  31. </view>
  32. <view class="main">
  33. {{defalutVal.respondentName}}
  34. </view>
  35. </view>
  36. <view class="listItem">
  37. <view class="lable">
  38. 案件状态:
  39. </view>
  40. <view class="main">
  41. {{defalutVal.caseStatusName}}
  42. </view>
  43. </view>
  44. <view class="listItem">
  45. <view class="lable">
  46. 案件房间号:
  47. </view>
  48. <view class="main">
  49. {{defalutVal.roomId}}
  50. </view>
  51. </view>
  52. <view class="listItem" v-if="sysType == 1">
  53. <view class="lable">
  54. 开庭时间:
  55. </view>
  56. <view class="main">
  57. {{defalutVal.scheduleStartTime}}
  58. </view>
  59. </view>
  60. <view class="listItem" v-if="sysType == 2">
  61. <view class="lable">
  62. 开庭时间:
  63. </view>
  64. <view class="main">
  65. {{defalutVal.hearDate}}
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </template>
  71. <script>
  72. export default {
  73. data() {
  74. return {
  75. sysType: null
  76. }
  77. },
  78. props: {
  79. defalutVal: {
  80. type: Object,
  81. default: () => {}
  82. }
  83. },
  84. methods: {
  85. // 在线开庭详情以及操作
  86. caseDetail() {
  87. let imUrl = '';
  88. let type = 1;
  89. if (this.sysType == 1) {
  90. imUrl = encodeURIComponent(
  91. `https://txroom.xayunmei.com/#/home?name=${this.$store.state.user.name}&id=${this.defalutVal.id}&userId=${this.$store.state.user.userId}&roomId=${this.defalutVal.roomId}`
  92. )
  93. } else if (this.sysType == 2) {
  94. imUrl = encodeURIComponent(
  95. `https://txroom.xayunmei.com/#/home?name=${this.$store.state.user.name}&id=${this.defalutVal.id}&userId=${this.$store.state.user.userId}&roomId=${this.defalutVal.roomId}&type=${type}`
  96. )
  97. }
  98. uni.navigateTo({
  99. url: `/pages/im/component/imHome?imUrl=${imUrl}`
  100. })
  101. }
  102. },
  103. created() {
  104. this.sysType = uni.getStorageSync('sysType');
  105. }
  106. }
  107. </script>
  108. <style lang="scss" scoped>
  109. .list {
  110. padding: 15rpx;
  111. display: flex;
  112. flex-direction: column;
  113. background-color: #ffffff;
  114. border-radius: 30rpx;
  115. margin-top: 20rpx;
  116. .listItem {
  117. width: 100%;
  118. display: flex;
  119. height: 50rpx;
  120. .lable {
  121. width: 30%;
  122. }
  123. .main {
  124. width: 60%;
  125. }
  126. }
  127. .btn {
  128. margin-top: 20rpx;
  129. width: 100%;
  130. display: flex;
  131. justify-content: space-between;
  132. .btnItem {
  133. height: 50rpx;
  134. background-color: #5395ff;
  135. border-radius: 10rpx;
  136. text-align: center;
  137. line-height: 50rpx;
  138. }
  139. }
  140. }
  141. </style>