index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <view class="total-page page-box page-env-20 scroll_content task-bg">
  3. <Nav :title="'任务'" :genre="1" :back="false" is_fixed></Nav>
  4. <view>
  5. <Search :placeholder="'客户姓名或电话'"></Search>
  6. </view>
  7. <EnScroll ref="scroll" :navHeight="105" is_tabHeight @onRefresh="onRefresh" @onScrollBottom="onScrollBottom">
  8. <view class="draft-item r-40 sys-background-fff">
  9. <view class="item-left">
  10. <view class="left-top left-item">
  11. <view class="top-name sys-weight-600 size-30 text-color-12">张三</view>
  12. <view class="top-product sys-weight-400 size-24 text-color-009 r-10">中油消费</view>
  13. </view>
  14. <view class="left-content left-item">
  15. <view class="sys-weight-400 size-24 text-color-12">身份证:</view>
  16. <view class="sys-weight-600 sys-size-28 text-color-12">中油消费</view>
  17. </view>
  18. <view class="left-bottom left-item">
  19. <view class=" size-24 text-color-999">身份证:</view>
  20. <view class=" size-24 text-color-999">中油消费</view>
  21. </view>
  22. </view>
  23. <view class="item-right">
  24. <view class="but-item but-edit size-28 sys-weight-500 text-color-fff button-background">编辑</view>
  25. <view class="but-item but-del size-28 sys-weight-500 text-color-666 ">删除</view>
  26. </view>
  27. </view>
  28. </EnScroll>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. components: {},
  34. data() {
  35. return {};
  36. },
  37. methods: {
  38. // 下拉刷新
  39. onRefresh() {
  40. // uni.showLoading({
  41. // title: '数据加载中'
  42. // })
  43. // setTimeout(() => {
  44. // uni.showToast({
  45. // title: '加载完成',
  46. // icon: 'none'
  47. // })
  48. // this.$refs.scroll.onEndPulling()
  49. // }, 1000)
  50. console.log("下拉刷新");
  51. this.startList()
  52. },
  53. // 滚动到底部
  54. onScrollBottom() {
  55. // uni.showLoading({
  56. // title: '数据加载中'
  57. // })
  58. if (this.current === 1) {
  59. this.getDayBacklogList()
  60. } else {
  61. this.getTaskReceiving();
  62. }
  63. // setTimeout(() => {
  64. // uni.showToast({
  65. // title: '加载完成',
  66. // icon: 'none'
  67. // })
  68. // }, 1000)
  69. console.log("到底部了");
  70. },
  71. },
  72. }
  73. </script>
  74. <style lang="scss">
  75. .draft-item{
  76. padding: 25rpx 30rpx;
  77. display: flex;
  78. justify-content: space-between;
  79. .item-left{
  80. .left-item{
  81. display: flex;
  82. justify-content: left;
  83. align-items: center;
  84. }
  85. .left-top{
  86. height: 52rpx;
  87. .top-product{
  88. background-color: rgba(15, 177, 96, 0.1);
  89. padding: 9rpx 22rpx;
  90. margin-left: 20rpx;
  91. }
  92. }
  93. .left-content{
  94. margin-top: 24rpx;
  95. height: 40rpx;
  96. }
  97. .left-bottom{
  98. margin-top: 24rpx;
  99. height: 34rpx;
  100. }
  101. }
  102. .item-right{
  103. padding-top: 20rpx;
  104. .but-item{
  105. width: 172rpx;
  106. height: 70rpx;
  107. text-align: center;
  108. line-height: 70rpx;
  109. }
  110. .but-del{
  111. margin-top: 15rpx;
  112. box-sizing: border-box;
  113. border-radius: 99rpx 99rpx 99rpx 99rpx;
  114. border: 1rpx solid #666666;
  115. }
  116. }
  117. }
  118. </style>