index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view>
  3. <z-navbar title="咨询历史明细" back></z-navbar>
  4. <view class="ml-20">
  5. <z-timeline class="mt-24" align="top" v-if="dataList.length" >
  6. <z-timeline-item :timestamp="item.createTime" v-for="(item,index) in dataList" :key="index">
  7. <z-card class="back_card mtb-20 " width="593">
  8. <view class="flex-n fac">
  9. <image class="back_card_img" :src="item.headImageSrc||'../../../static/touxiang_2.png'"></image>
  10. <view class="back_card_content">
  11. <view class="back_card_text">{{item.roleName}}</view>
  12. <view class="back_card_text">{{item.createUserName}}</view>
  13. </view>
  14. </view>
  15. <view class="back_card_text2">{{item.remark||'无'}}</view>
  16. </z-card>
  17. </z-timeline-item>
  18. </z-timeline>
  19. </view>
  20. <u-toast ref="uToast"></u-toast>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. dataList:[]
  28. };
  29. },
  30. onLoad(option) {
  31. console.log(option)
  32. this.getData(option.id);
  33. },
  34. methods:{
  35. getData(id){
  36. //needgai app/preUserAskRecord/askHandleById
  37. this.$axios.post('app/preUserAskRecord/askHandleById',{
  38. "userAskId": id
  39. }).then(res=>{
  40. console.log(res.data)
  41. this.dataList=res.data.list;
  42. }).catch(err=>{
  43. this.$refs.uToast.error(err.msg);
  44. })
  45. }
  46. }
  47. }
  48. </script>
  49. <style scoped lang="scss">
  50. .back_card{
  51. margin-left: 0!important;
  52. font-size: 24rpx;
  53. padding:26rpx;
  54. .back_card_img{
  55. width: 89rpx;
  56. min-width: 89rpx;
  57. height: 89rpx;
  58. border-radius: 45rpx;
  59. background: #eee;
  60. overflow: hidden;
  61. margin-right: 19rpx;
  62. }
  63. .back_card_text{
  64. color: #555555;
  65. line-height: 30rpx;
  66. }
  67. .back_card_text2{
  68. color: #888888;
  69. margin-left: 108rpx;
  70. }
  71. }
  72. </style>