imList.vue 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="list" @tap="caseDetail">
  3. <view class="listItem">
  4. <view class="lable">
  5. 案件编号:
  6. </view>
  7. <view class="main">
  8. {{defalutVal.caseNum}}
  9. </view>
  10. </view>
  11. <view class="listItem">
  12. <view class="lable">
  13. 申请人姓名:
  14. </view>
  15. <view class="main">
  16. {{defalutVal.applicantName}}
  17. </view>
  18. </view>
  19. <view class="listItem">
  20. <view class="lable">
  21. 被申请人姓名:
  22. </view>
  23. <view class="main">
  24. {{defalutVal.respondentName}}
  25. </view>
  26. </view>
  27. <view class="listItem">
  28. <view class="lable">
  29. 案件状态:
  30. </view>
  31. <view class="main">
  32. {{defalutVal.caseStatusName}}
  33. </view>
  34. </view>
  35. <view class="listItem">
  36. <view class="lable">
  37. 案件房间号:
  38. </view>
  39. <view class="main">
  40. {{defalutVal.roomId}}
  41. </view>
  42. </view>
  43. <view class="listItem">
  44. <view class="lable">
  45. 开庭时间:
  46. </view>
  47. <view class="main">
  48. {{defalutVal.scheduleStartTime}}
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default{
  55. data(){
  56. return{
  57. }
  58. },
  59. props:{
  60. defalutVal:{
  61. type:Object,
  62. default:() => {}
  63. }
  64. },
  65. methods:{
  66. // 在线开庭详情以及操作
  67. caseDetail(){
  68. let imUrl = encodeURIComponent(`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}`)
  69. console.log(this.$store.state.user)
  70. uni.navigateTo({url:`/pages/im/component/imHome?imUrl=${imUrl}`})
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .list {
  77. padding: 15rpx;
  78. display: flex;
  79. flex-direction: column;
  80. background-color: #ffffff;
  81. border-radius: 30rpx;
  82. margin-top: 20rpx;
  83. .listItem {
  84. width: 100%;
  85. display: flex;
  86. height: 50rpx;
  87. .lable {
  88. width: 30%;
  89. }
  90. .main {
  91. width: 60%;
  92. }
  93. }
  94. .btn{
  95. margin-top: 20rpx;
  96. width: 100%;
  97. display: flex;
  98. justify-content: space-between;
  99. .btnItem{
  100. height: 50rpx;
  101. background-color: #5395ff;
  102. border-radius: 10rpx;
  103. text-align: center;
  104. line-height: 50rpx;
  105. }
  106. }
  107. }
  108. </style>