editCompanyDesc.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="switch-roles">
  3. <nav-bar title="公司信息" color="#000"></nav-bar>
  4. <view class="roles-content">
  5. <view class="content">
  6. <view class="progress-num"> <text>5</text>/8 </view>
  7. <view class="title">
  8. <view>编辑公司简介</view>
  9. </view>
  10. <view class="desc"> 可以简单介绍一下公司发展状况、服务领域、主要产品等信息</view>
  11. <view class="small-desc">一句短介绍</view>
  12. <view class="content-index">
  13. <view class="check-box">
  14. <textarea
  15. v-model="text"
  16. placeholder="填写公司介绍(最少10个字)"
  17. maxlength="500"
  18. @input="onInput"
  19. class="textarea"
  20. ></textarea>
  21. <view class="word-count">
  22. <text>{{ text ? text.length : 0 }}</text> /500</view
  23. >
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="submit-btn" @click="goJobPostingSecond">下一步</view>
  29. </view>
  30. </template>
  31. <script>
  32. import navBar from "@/components/nav-bar/index.vue";
  33. export default {
  34. data() {
  35. return {
  36. text: "",
  37. };
  38. },
  39. components: {
  40. navBar,
  41. },
  42. onLoad(options) {
  43. if (options.text) {
  44. this.text = options.text;
  45. }
  46. },
  47. methods: {
  48. },
  49. };
  50. </script>
  51. <style lang="scss" scoped>
  52. .switch-roles {
  53. background-color: #fff;
  54. position: absolute;
  55. left: 0;
  56. right: 0;
  57. top: 0;
  58. bottom: 0;
  59. display: flex;
  60. flex-direction: column;
  61. .check-box {
  62. width: 100%;
  63. border-radius: 12rpx;
  64. background: rgba(240, 240, 240, 1);
  65. padding: 34rpx;
  66. padding-top: 40rpx;
  67. box-sizing: border-box;
  68. margin: 20rpx 0;
  69. .word-count {
  70. font-family: DM Sans;
  71. font-size: 20rpx;
  72. font-weight: 400;
  73. line-height: 26rpx;
  74. text-align: right;
  75. text {
  76. color: #016bf6;
  77. }
  78. }
  79. }
  80. .roles-content {
  81. width: 100%;
  82. flex: 1;
  83. overflow: hidden;
  84. overflow-y: auto;
  85. .content {
  86. padding: 40rpx;
  87. box-sizing: border-box;
  88. display: flex;
  89. flex-direction: column;
  90. align-items: center;
  91. justify-content: center;
  92. .progress-num {
  93. color: #016bf6;
  94. font-family: DM Sans;
  95. font-size: 24rpx;
  96. font-weight: 500;
  97. width: 100%;
  98. padding-bottom: 20rpx;
  99. box-sizing: border-box;
  100. text {
  101. font-size: 48rpx;
  102. font-weight: 700;
  103. }
  104. }
  105. .title {
  106. color: #333;
  107. width: 100%;
  108. font-family: DM Sans;
  109. font-size: 48rpx;
  110. font-weight: 700;
  111. display: flex;
  112. justify-content: space-between;
  113. align-items: center;
  114. margin-bottom: 20rpx;
  115. }
  116. .desc {
  117. color: rgba(102, 102, 102, 1);
  118. width: 100%;
  119. font-family: DM Sans;
  120. font-size: 24rpx;
  121. font-weight: 400;
  122. line-height: 32rpx;
  123. letter-spacing: 0.5%;
  124. text-align: left;
  125. box-sizing: border-box;
  126. margin-bottom: 20rpx;
  127. }
  128. .small-desc {
  129. color: rgba(34, 37, 42, 1);
  130. font-family: DM Sans;
  131. font-size: 32rpx;
  132. font-weight: 400;
  133. line-height: 48rpx;
  134. width: 100%;
  135. }
  136. .content-index {
  137. width: 100%;
  138. }
  139. }
  140. }
  141. .submit-btn {
  142. flex-shrink: 0;
  143. border-radius: 999px;
  144. background: #ff6600;
  145. color: rgba(255, 255, 255, 1);
  146. font-family: DM Sans;
  147. font-size: 32rpx;
  148. font-weight: 400;
  149. line-height: 48rpx;
  150. display: flex;
  151. justify-content: center;
  152. align-items: center;
  153. padding: 24rpx 32rpx;
  154. box-sizing: border-box;
  155. margin: 30rpx 40rpx;
  156. margin-top: 20rpx;
  157. }
  158. }
  159. ::v-deep .textarea-placeholder {
  160. color: rgba(153, 153, 153, 1);
  161. font-family: DM Sans;
  162. font-size: 20rpx !important;
  163. font-weight: 400;
  164. line-height: 26rpx;
  165. }
  166. ::v-deep .uni-textarea-textarea {
  167. font-size: 20rpx;
  168. }
  169. </style>