infrastructure.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <!-- 基建工程 -->
  3. <view>
  4. <view class="view-bg">
  5. <view class="uni-common-mt" style="width: 100%;">
  6. <text class="uni-title uni-common-pl">工程名称</text>
  7. <view style="width: 100%;padding-right: 20rpx;box-sizing: border-box;">
  8. <textarea class="textarea" placeholder="请输入建设单位" maxlength="100"
  9. placeholder-style="padding: 10rpx;"
  10. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  11. auto-height v-model="projectName"></textarea>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="view-bg">
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data() {
  22. return {
  23. projectId:"",
  24. projectName:"",
  25. buildUnit:"",
  26. }
  27. },
  28. methods: {
  29. }
  30. }
  31. </script>
  32. <style>
  33. .container {
  34. display: flex;
  35. margin-left: 10px;
  36. margin-top: 10px;
  37. margin-right: 10px;
  38. align-items: flex-start;
  39. justify-content: space-between;
  40. }
  41. .text {
  42. font-size: 16px;
  43. color: #333;
  44. }
  45. .background {
  46. border: 15px solid hsla(0, 0%, 100%, .5);
  47. background: white;
  48. background-clip: padding-box;
  49. /*从padding开始往外面裁剪背景*/
  50. }
  51. .btn {
  52. margin-top: 40px;
  53. margin-right: 20px;
  54. margin-bottom: 120px;
  55. margin-left: 20px;
  56. height: 45px;
  57. }
  58. .number {
  59. display: flex;
  60. /* 水平居中显示子元素 */
  61. align-items: flex-start;
  62. /* 垂直居中显示子元素 */
  63. justify-content: space-between;
  64. /* 左右间距等于间距大小 */
  65. padding: 10px;
  66. /* 设置padding以提高视觉效果 */
  67. }
  68. .textarea {
  69. margin-top: 10upx;
  70. width: 100%;
  71. border: 1rpx solid red;
  72. min-height: 100upx;
  73. line-height: 20px;
  74. }
  75. .uni-list-cell-db,
  76. .uni-list-cell {
  77. position: relative;
  78. display: flex;
  79. flex-direction: row;
  80. justify-content: space-between;
  81. align-items: center;
  82. }
  83. .uni-list-cell-left {
  84. white-space: nowrap;
  85. font-size: 28rpx;
  86. }
  87. .view-bg {
  88. margin-left: 8px;
  89. margin-right: 8px;
  90. margin-top: 8px;
  91. padding: 10px;
  92. background-color: #fff;
  93. border-radius: 5px;
  94. }
  95. </style>