memorandum.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!-- 备忘录 -->
  2. <template>
  3. <view class="memorandum">
  4. <view class="memorandum-box">
  5. <textarea class="memorandum-box-t" type="text" v-model="form.hazardDescribe" maxlength="200" @input="sumfontnum"
  6. placeholder="请输入内容" placeholder-style="font-size:28rpx;color:#999;"></textarea>
  7. <view class="memorandum-box-b"><text>{{fontNum}}</text>/200</view>
  8. </view>
  9. <view class="sub-btn">保存</view>
  10. </view>
  11. </template>
  12. <script>
  13. import {
  14. config
  15. } from '@/api/request/config.js'
  16. import {
  17. systemDeptDropList,
  18. } from '@/pages/api/index.js'
  19. export default {
  20. name: "memorandum",
  21. components: {
  22. },
  23. data() {
  24. return {
  25. baseUrl: config.base_url,
  26. pageType: 0,
  27. fontNum: 0,
  28. form: {
  29. hazardDescribe: '',
  30. }
  31. }
  32. },
  33. onLoad(option) {
  34. },
  35. onShow() {
  36. },
  37. mounted() {
  38. },
  39. methods: {
  40. // 限制文本框字数
  41. sumfontnum(e) {
  42. console.log(e)
  43. this.fontNum = e.detail.value.length
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="stylus" scoped>
  49. .memorandum {
  50. height: 100%;
  51. .memorandum-box {
  52. width: 750rpx;
  53. height: 300rpx;
  54. background: #FFFFFF;
  55. .memorandum-box-t{
  56. width: 750rpx;
  57. height: 240rpx;
  58. padding: 20rpx 30rpx;
  59. box-sizing: border-box;
  60. }
  61. .memorandum-box-b{
  62. font-size: 28rpx;
  63. color: #999999;
  64. line-height: 39rpx;
  65. text-align: right;
  66. padding: 0 30rpx;
  67. box-sizing: border-box;
  68. }
  69. }
  70. .sub-btn{
  71. width: 686rpx;
  72. height: 100rpx;
  73. background: #0183FA;
  74. border-radius: 50rpx 50rpx 50rpx 50rpx;
  75. font-size: 30rpx;
  76. color: #FFFFFF;
  77. line-height: 100rpx;
  78. text-align: center;
  79. margin-left: 34rpx;
  80. position: fixed;
  81. bottom: 24rpx;
  82. }
  83. }
  84. </style>