editJob.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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="title">岗位描述</view>
  7. <view class="desc"
  8. >请勿填写QQ、微信、电话等联系方式及特殊符号,性别歧视词、
  9. 违反劳动法相关内容,否则有可能导致账号封禁。</view
  10. >
  11. <view class="check-box">
  12. <textarea
  13. v-model="text"
  14. placeholder="1.工作内容
  15. 2.任务要求
  16. 3.特别说明"
  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 class="submit-btn" @click="goJobPosting">确定</view>
  28. </view>
  29. </template>
  30. <script>
  31. import navBar from "@/components/nav-bar/index.vue";
  32. export default {
  33. data() {
  34. return {
  35. peopleList: [
  36. "0-20人",
  37. "20-99人",
  38. "100-499人",
  39. "500-999人",
  40. "1000-9999人",
  41. "10000人以上",
  42. ],
  43. text: "",
  44. check: 0,
  45. };
  46. },
  47. components: {
  48. navBar,
  49. },
  50. onLoad(options) {
  51. if (options.text) {
  52. this.text = options.text;
  53. }
  54. },
  55. methods: {
  56. onInput(e) {
  57. // console.log(e);
  58. // 如果需要额外的输入控制
  59. // this.text = e.detail.value;
  60. },
  61. goJobPosting() {
  62. uni.navigateTo({
  63. url: `/pages/my/jobPosting?text=${this.text}`,
  64. });
  65. },
  66. },
  67. };
  68. </script>
  69. <style lang="scss" scoped>
  70. .switch-roles {
  71. background-color: #fff;
  72. position: absolute;
  73. left: 0;
  74. right: 0;
  75. top: 0;
  76. bottom: 0;
  77. display: flex;
  78. flex-direction: column;
  79. .roles-content {
  80. width: 100%;
  81. flex: 1;
  82. overflow: hidden;
  83. overflow-y: auto;
  84. .content {
  85. padding: 40rpx;
  86. box-sizing: border-box;
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. justify-content: center;
  91. .title {
  92. color: #333;
  93. width: 100%;
  94. font-family: DM Sans;
  95. font-size: 40rpx;
  96. font-weight: 600;
  97. }
  98. .desc {
  99. color: rgba(102, 102, 102, 1);
  100. width: 100%;
  101. font-family: DM Sans;
  102. font-size: 24rpx;
  103. font-weight: 400;
  104. line-height: 32rpx;
  105. letter-spacing: 0.5%;
  106. text-align: left;
  107. padding: 20rpx 0;
  108. box-sizing: border-box;
  109. }
  110. .check-box {
  111. width: 100%;
  112. border-radius: 12rpx;
  113. background: rgba(240, 240, 240, 1);
  114. padding: 34rpx;
  115. padding-top: 40rpx;
  116. box-sizing: border-box;
  117. .word-count {
  118. font-family: DM Sans;
  119. font-size: 20rpx;
  120. font-weight: 400;
  121. line-height: 26rpx;
  122. text-align: right;
  123. text {
  124. color: #016bf6;
  125. }
  126. }
  127. }
  128. }
  129. }
  130. .submit-btn {
  131. flex-shrink: 0;
  132. border-radius: 999px;
  133. box-shadow: 0px 2px 4px 0px rgba(9, 196, 116, 0.3);
  134. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  135. color: rgba(255, 255, 255, 1);
  136. font-family: DM Sans;
  137. font-size: 32rpx;
  138. font-weight: 400;
  139. line-height: 48rpx;
  140. display: flex;
  141. justify-content: center;
  142. align-items: center;
  143. padding: 16rpx 32rpx;
  144. box-sizing: border-box;
  145. margin: 60rpx 20rpx;
  146. }
  147. }
  148. ::v-deep .textarea-placeholder {
  149. color: rgba(153, 153, 153, 1);
  150. font-family: DM Sans;
  151. font-size: 20rpx !important;
  152. font-weight: 400;
  153. line-height: 26rpx;
  154. }
  155. ::v-deep .uni-textarea-textarea {
  156. font-size: 20rpx;
  157. }
  158. </style>