editCompanyDesc.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. goJobPostingSecond(){
  49. uni.navigateTo({ url: '/my/renzheng/companyLogo' })
  50. }
  51. },
  52. };
  53. </script>
  54. <style lang="scss" scoped>
  55. .switch-roles {
  56. background-color: #fff;
  57. position: absolute;
  58. left: 0;
  59. right: 0;
  60. top: 0;
  61. bottom: 0;
  62. display: flex;
  63. flex-direction: column;
  64. .check-box {
  65. width: 100%;
  66. border-radius: 12rpx;
  67. background: rgba(240, 240, 240, 1);
  68. padding: 34rpx;
  69. padding-top: 40rpx;
  70. box-sizing: border-box;
  71. margin: 20rpx 0;
  72. .word-count {
  73. font-family: DM Sans;
  74. font-size: 20rpx;
  75. font-weight: 400;
  76. line-height: 26rpx;
  77. text-align: right;
  78. text {
  79. color: #016bf6;
  80. }
  81. }
  82. }
  83. .roles-content {
  84. width: 100%;
  85. flex: 1;
  86. overflow: hidden;
  87. overflow-y: auto;
  88. .content {
  89. padding: 40rpx;
  90. box-sizing: border-box;
  91. display: flex;
  92. flex-direction: column;
  93. align-items: center;
  94. justify-content: center;
  95. .progress-num {
  96. color: #016bf6;
  97. font-family: DM Sans;
  98. font-size: 24rpx;
  99. font-weight: 500;
  100. width: 100%;
  101. padding-bottom: 20rpx;
  102. box-sizing: border-box;
  103. text {
  104. font-size: 48rpx;
  105. font-weight: 700;
  106. }
  107. }
  108. .title {
  109. color: #333;
  110. width: 100%;
  111. font-family: DM Sans;
  112. font-size: 48rpx;
  113. font-weight: 700;
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: center;
  117. margin-bottom: 20rpx;
  118. }
  119. .desc {
  120. color: rgba(102, 102, 102, 1);
  121. width: 100%;
  122. font-family: DM Sans;
  123. font-size: 24rpx;
  124. font-weight: 400;
  125. line-height: 32rpx;
  126. letter-spacing: 0.5%;
  127. text-align: left;
  128. box-sizing: border-box;
  129. margin-bottom: 20rpx;
  130. }
  131. .small-desc {
  132. color: rgba(34, 37, 42, 1);
  133. font-family: DM Sans;
  134. font-size: 32rpx;
  135. font-weight: 400;
  136. line-height: 48rpx;
  137. width: 100%;
  138. }
  139. .content-index {
  140. width: 100%;
  141. }
  142. }
  143. }
  144. .submit-btn {
  145. flex-shrink: 0;
  146. border-radius: 999px;
  147. background: #ff6600;
  148. color: rgba(255, 255, 255, 1);
  149. font-family: DM Sans;
  150. font-size: 32rpx;
  151. font-weight: 400;
  152. line-height: 48rpx;
  153. display: flex;
  154. justify-content: center;
  155. align-items: center;
  156. padding: 24rpx 32rpx;
  157. box-sizing: border-box;
  158. margin: 30rpx 40rpx;
  159. margin-top: 20rpx;
  160. }
  161. }
  162. ::v-deep .textarea-placeholder {
  163. color: rgba(153, 153, 153, 1);
  164. font-family: DM Sans;
  165. font-size: 20rpx !important;
  166. font-weight: 400;
  167. line-height: 26rpx;
  168. }
  169. ::v-deep .uni-textarea-textarea {
  170. font-size: 20rpx;
  171. }
  172. </style>