sopLogsDetails.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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="(item,index ) in contents.setting">
  17. <text class="label">发送内容</text>
  18. <text class="text" v-if="item.contentType==1" v-html="item.value"></text>
  19. <text v-if="item.contentType==2" >
  20. <image style="width:100rpx;height:100rpx;" :src="item.imgUrl"></image>
  21. </text>
  22. <text v-if="item.contentType==3" >
  23. 链接:{{item.linkTitle}}
  24. </text>
  25. <text v-if="item.contentType==6" >
  26. 视频:{{item.videoUrl}}
  27. </text>
  28. <text v-if="item.contentType==5" >
  29. 文件:{{item.fileUrl}}
  30. </text>
  31. <text v-if="item.contentType==7" >
  32. 语音:{{item.voiceUrl}}
  33. </text>
  34. <text v-if="item.contentType==9" >
  35. 小程序:
  36. </text>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import {getQwSopSendCustomerList} from '@/api/qwSop.js'
  43. export default {
  44. data() {
  45. return {
  46. id:null,
  47. item:null,
  48. contents:[],
  49. }
  50. },
  51. onLoad(option) {
  52. // this.id = option.id;
  53. var that=this;
  54. this.item=JSON.parse(uni.getStorageSync("sop"));
  55. console.log(this.item)
  56. this.contents=JSON.parse(this.item.contentJson);
  57. },
  58. onShow() {
  59. },
  60. methods: {
  61. getUserInfoByUserId(userId){
  62. var data = {userId:userId};
  63. var that=this;
  64. getUserInfoByUserId(data).then(
  65. res => {
  66. that.bindUser(res);
  67. },
  68. rej => {}
  69. );
  70. },
  71. }
  72. }
  73. </script>
  74. <style lang="scss">
  75. page{
  76. height: 100%;
  77. background: #f6f6f6;
  78. }
  79. </style>
  80. <style scoped lang="scss">
  81. .content{
  82. // 详细信息
  83. .info-detail{
  84. padding: 0 24upx;
  85. background-color: #fff;
  86. .item{
  87. padding: 20upx 0;
  88. border-bottom: 1px solid #f7f7f7;
  89. .label{
  90. font-size: 30upx;
  91. color: #999;
  92. margin-right: 20upx;
  93. }
  94. .text{
  95. font-size: 30upx;
  96. color: #333;
  97. }
  98. }
  99. }
  100. }
  101. </style>