sopLogsDetails.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="content">
  3. <view class="info-detail" v-if="item!=null">
  4. <view class="item">
  5. <text class="label">接收者:</text>
  6. <text class="text">{{item.externalUserName}}</text>
  7. </view>
  8. <view class="item">
  9. <text class="label">发送时间:</text>
  10. <text class="text">{{item.sendTime}}</text>
  11. </view>
  12. <view class="item">
  13. <text class="label">实际发送时间:</text>
  14. <text class="text">{{item.realSendTime}}</text>
  15. </view>
  16. <view class="item" v-for="(cont,index ) in contents">
  17. <text class="label">发送内容({{index+1}}):</text>
  18. <text class="text" v-html="cont.value"> </text>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import {getCourseSopLogsDetail} from '@/api/course.js'
  25. export default {
  26. data() {
  27. return {
  28. id:null,
  29. item:null,
  30. contents:[],
  31. }
  32. },
  33. onLoad(option) {
  34. // this.id = option.id;
  35. this.item=JSON.parse(uni.getStorageSync("sop"));
  36. console.log(this.item)
  37. this.contents=JSON.parse(this.item.contentJson);
  38. },
  39. onShow() {
  40. },
  41. methods: {
  42. getUserInfoByUserId(userId){
  43. var data = {userId:userId};
  44. var that=this;
  45. getUserInfoByUserId(data).then(
  46. res => {
  47. that.bindUser(res);
  48. },
  49. rej => {}
  50. );
  51. },
  52. }
  53. }
  54. </script>
  55. <style lang="scss">
  56. page{
  57. height: 100%;
  58. background: #f6f6f6;
  59. }
  60. </style>
  61. <style scoped lang="scss">
  62. .content{
  63. // 详细信息
  64. .info-detail{
  65. padding: 0 24upx;
  66. background-color: #fff;
  67. .item{
  68. padding: 20upx 0;
  69. border-bottom: 1px solid #f7f7f7;
  70. .label{
  71. font-size: 30upx;
  72. color: #999;
  73. margin-right: 20upx;
  74. }
  75. .text{
  76. font-size: 30upx;
  77. color: #333;
  78. }
  79. }
  80. }
  81. }
  82. </style>