task_operate.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <view class="total-page page-box">
  3. <Nav :title="is_handle?'任务操作':'任务冲销'" :genre="1" :opacity="scrollTop" is_fixed :bgHeight="bgHeight"></Nav>
  4. <view class="operate_body page-env-160" :style="{top:`${$tools.topHeight()}px`}">
  5. <view class="sys-background-fff m-lr30 m-t30 m-b20 p-lr30 r-20">
  6. <view class="" v-if="is_handle">
  7. <view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
  8. <view class="wh-text"><text></text>下一阶段处理</view>
  9. <view class="row-c flex">
  10. <input class="wh-input sys-size-28 text-color-12 m-l20 flex"
  11. placeholder-class="sys-size-28 text-color-999 sys-weight-400" placeholder="请选择"
  12. v-model="inputValue"></input>
  13. </view>
  14. <uni-icons type="forward" size="18" color="#D8D8D8"></uni-icons>
  15. </view>
  16. <view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
  17. <view class="wh-text"><text></text>下一执行人员</view>
  18. <view class="row-c flex">
  19. <input class="wh-input sys-size-28 text-color-12 m-l20 flex"
  20. placeholder-class="sys-size-28 text-color-999 sys-weight-400" placeholder="请选择"
  21. v-model="inputValue"></input>
  22. </view>
  23. <uni-icons type="forward" size="18" color="#D8D8D8"></uni-icons>
  24. </view>
  25. <WhInput :name="'回款姓名'"></WhInput>
  26. <WhInput :name="'回款银行'" :is_border="false" is_select disabled>
  27. </WhInput>
  28. </view>
  29. <view class="" v-else>
  30. <WhInput :name="'冲销类型'" :is_border="false" is_select disabled></WhInput>
  31. </view>
  32. </view>
  33. <view class="sys-background-fff m-lr30 r-20">
  34. <SendChat></SendChat>
  35. </view>
  36. </view>
  37. <EnButton></EnButton>
  38. </view>
  39. </template>
  40. <script>
  41. import WhInput from "@/page_task/module/wh-input.vue"
  42. import SendChat from "@/page_task/task_details/module/send_chat.vue"
  43. export default {
  44. components: {
  45. WhInput,
  46. SendChat
  47. },
  48. data() {
  49. return {
  50. bgHeight: 110,
  51. scrollTop: 0,
  52. is_handle: true
  53. }
  54. },
  55. onPageScroll(res) {
  56. this.scrollTop = res.scrollTop / 120
  57. },
  58. methods: {
  59. // 下拉刷新
  60. onRefresh() {
  61. uni.showLoading({
  62. title: '数据加载中'
  63. })
  64. setTimeout(() => {
  65. uni.showToast({
  66. title: '加载完成',
  67. icon: 'none'
  68. })
  69. this.$refs.scroll.onEndPulling()
  70. }, 1000)
  71. console.log("下拉刷新");
  72. },
  73. // 滚动到底部
  74. onScrollBottom() {
  75. uni.showLoading({
  76. title: '数据加载中'
  77. })
  78. setTimeout(() => {
  79. uni.showToast({
  80. title: '加载完成',
  81. icon: 'none'
  82. })
  83. }, 1000)
  84. console.log("到底部了");
  85. },
  86. }
  87. }
  88. </script>
  89. <style lang="scss" scoped>
  90. .operate_body {
  91. width: 100%;
  92. position: absolute;
  93. }
  94. .wh-input {
  95. width: 100%;
  96. text-align: right;
  97. direction: rtl;
  98. }
  99. </style>