myrecord.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="page scoped-box">
  3. <view class="buystep-info u-p-32 box-shadow u-skeleton-fillet">
  4. <view class="name">跟进记录:{{custTips || ''}}</view>
  5. <u-empty v-if="stepsLogList.length == 0" mode="list" text="暂无流水记录"></u-empty>
  6. <u-time-line>
  7. <u-time-line-item v-for="(item, index) in stepsLogList" :key="index">
  8. <template v-slot:node>
  9. <view class="u-node"><u-icon name="checkmark-circle" size="28" color="#2080f0"></u-icon></view>
  10. </template>
  11. <template v-slot:content>
  12. <view>
  13. <view class="u-order-title">日常维护:</view>
  14. <view class="u-order-desc">{{item.record_remark}}</view>
  15. <view class="u-order-time">{{ item.create_at}}</view>
  16. </view>
  17. </template>
  18. </u-time-line-item>
  19. </u-time-line>
  20. </view>
  21. <u-button class="f-btn bwin-btn-80 u-m-b-10" type="primary" @click="addHandle">添加跟进记录</u-button>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. curId: '',
  29. custTips: '',
  30. detail: {
  31. }, // 客户详情
  32. stepsLogList: [] // 进展
  33. };
  34. },
  35. onLoad(params) {
  36. this.curId = params.id
  37. this.custTips = params.str
  38. },
  39. onShow() {
  40. this.getData()
  41. },
  42. methods: {
  43. getData () {
  44. uni.api.cust.apiprivaterecordlist({customer_id:this.curId, page_size: 100}).then(res =>{
  45. this.stepsLogList = res.list || []
  46. })
  47. },
  48. addHandle () {
  49. uni.navigateTo({
  50. url: `/pages/cust/myrecordedit?id=${this.curId}`
  51. })
  52. },
  53. }
  54. };
  55. </script>
  56. <style lang="scss">
  57. .buystep-info {
  58. width: 100%;
  59. padding: 32rpx 0rpx;
  60. background-color: #fff;
  61. margin-bottom: 20rpx;
  62. border-radius: 10rpx;
  63. .name {
  64. font-weight: bold;
  65. margin-bottom: 20rpx;
  66. }
  67. .u-order-title {
  68. color: $u-main-color;
  69. font-size: $u-p2;
  70. }
  71. .u-order-desc {
  72. // color: $u-content-color;
  73. color: #777;
  74. font-size: $u-p2;
  75. margin-bottom: 6rpx;
  76. }
  77. .u-order-time {
  78. color: rgb(200, 200, 200);
  79. font-size: $u-p2;
  80. }
  81. }
  82. .scoped-box {
  83. padding-bottom: 100rpx;
  84. .f-btn {
  85. position: fixed;
  86. bottom: 0;
  87. left: 20rpx;
  88. right: 20rpx;
  89. }
  90. }
  91. </style>