index.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view class="mainBox">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" background-color="#157A2C" color="#fff" title="公海客户" @clickLeft="back">
  4. </uni-nav-bar>
  5. <u-list @scrolltolower="scrolltolower">
  6. <contactList :btnList="btnList" ref="contactListRef"></contactList>
  7. </u-list>
  8. <view class="add" @click="add">
  9. <u-icon name="plus" color="#fff"></u-icon>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import contactList from './contactList.vue'
  15. export default {
  16. components: {
  17. contactList
  18. },
  19. data() {
  20. return {
  21. treeList: [],
  22. btnList: [{
  23. name: '详情',
  24. apiName: '',
  25. btnType: 'primary',
  26. type: '1',
  27. pageUrl: '/pages/saleManage/contact/add'
  28. },{
  29. name: '申请',
  30. apiName: 'addApply',
  31. btnType: 'primary',
  32. type: '2',
  33. }]
  34. }
  35. },
  36. async onLoad() {
  37. this.$nextTick(() => {
  38. this.$refs.contactListRef.getList({
  39. type: 1
  40. })
  41. })
  42. },
  43. methods: {
  44. add() {
  45. uni.navigateTo({
  46. url: '/pages/saleManage/contact/add'
  47. })
  48. },
  49. scrolltolower() {
  50. this.$refs.contactListRef.getList({
  51. type: 1,
  52. assignStatus:0
  53. })
  54. },
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .add {
  60. width: 96rpx;
  61. height: 96rpx;
  62. border-radius: 48rpx;
  63. background: #3c9cff;
  64. position: fixed;
  65. bottom: 100rpx;
  66. right: 24rpx;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. }
  71. </style>