companyMsg.vue 4.4 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="title">公司信息</view>
  7. <u-input
  8. placeholder="公司信息将被审核,请确保您输入的信息真实有效"
  9. v-model="companyMsg"
  10. type="textarea"
  11. clearable
  12. class="custom-textarea"
  13. >
  14. <!-- :customStyle="{ padding: '8rpx 24rpx ',border:'none' }" -->
  15. <template #prefix>
  16. <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
  17. </template>
  18. </u-input>
  19. <view class="form-item">
  20. <view class="item-label"> 公司全称 </view>
  21. <u-input
  22. placeholder="请输入公司全称"
  23. v-model="companyName"
  24. type="textarea"
  25. clearable
  26. class="custom-textarea"
  27. >
  28. <!-- :customStyle="{ padding: '8rpx 24rpx ',border:'none' }" -->
  29. <template #prefix>
  30. <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
  31. </template>
  32. </u-input>
  33. </view>
  34. <view class="form-item">
  35. <view class="item-label"> 公司简称(选填) </view>
  36. <u-input
  37. placeholder="建议填写公司简称"
  38. v-model="address"
  39. clearable
  40. class="custom-input"
  41. :customStyle="{ padding: '8rpx 24rpx ' }"
  42. >
  43. <template #prefix>
  44. <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
  45. </template>
  46. </u-input>
  47. </view>
  48. <view class="form-item">
  49. <view class="item-label"> 人员规模 </view>
  50. <u-input
  51. placeholder="请选择人员规模"
  52. v-model="addressDetail"
  53. clearable
  54. class="custom-input"
  55. :customStyle="{ padding: '8rpx 24rpx ' }"
  56. >
  57. <template #prefix>
  58. <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
  59. </template>
  60. </u-input>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="submit-btn" @click="goWorkAddress">确定</view>
  65. </view>
  66. </template>
  67. <script>
  68. import navBar from "@/components/nav-bar/index.vue";
  69. export default {
  70. data() {
  71. return {
  72. address: "",
  73. addressDetail: "",
  74. companyMsg: "",
  75. companyName: "",
  76. };
  77. },
  78. components: {
  79. navBar,
  80. },
  81. onLoad(options) {
  82. if (options.text) {
  83. this.text = options.text;
  84. }
  85. },
  86. methods: {
  87. onInput(e) {
  88. // console.log(e);
  89. // 如果需要额外的输入控制
  90. // this.text = e.detail.value;
  91. },
  92. goWorkAddress() {
  93. uni.navigateTo({ url: "/package/jobIntention/workAddress" });
  94. },
  95. },
  96. };
  97. </script>
  98. <style lang="scss" scoped>
  99. .switch-roles {
  100. background-color: #fff;
  101. position: absolute;
  102. left: 0;
  103. right: 0;
  104. top: 0;
  105. bottom: 0;
  106. display: flex;
  107. flex-direction: column;
  108. .roles-content {
  109. width: 100%;
  110. flex: 1;
  111. overflow: hidden;
  112. overflow-y: auto;
  113. .content {
  114. padding: 40rpx;
  115. box-sizing: border-box;
  116. display: flex;
  117. flex-direction: column;
  118. align-items: center;
  119. justify-content: center;
  120. .title {
  121. color: #333;
  122. width: 100%;
  123. font-family: DM Sans;
  124. font-size: 40rpx;
  125. font-weight: 600;
  126. }
  127. }
  128. }
  129. .submit-btn {
  130. flex-shrink: 0;
  131. border-radius: 999px;
  132. background: #ff6600;
  133. color: rgba(255, 255, 255, 1);
  134. font-family: DM Sans;
  135. font-size: 32rpx;
  136. font-weight: 400;
  137. line-height: 48rpx;
  138. display: flex;
  139. justify-content: center;
  140. align-items: center;
  141. padding: 16rpx 32rpx;
  142. box-sizing: border-box;
  143. margin: 60rpx 20rpx;
  144. }
  145. }
  146. .form-item {
  147. margin-bottom: 32rpx;
  148. width: 100%;
  149. }
  150. .item-label {
  151. color: rgba(18, 26, 44, 1);
  152. font-family: Roboto;
  153. font-size: 32rpx;
  154. font-weight: 400;
  155. line-height: 51.2rpx;
  156. letter-spacing: 0px;
  157. text-align: left;
  158. padding-bottom: 6rpx;
  159. padding: 10rpx 0;
  160. box-sizing: border-box;
  161. }
  162. .custom-input {
  163. box-sizing: border-box;
  164. border: 2rpx solid rgba(158, 161, 168, 1);
  165. border-radius: 100rpx;
  166. background: rgba(255, 255, 255, 1);
  167. padding: 8rpx 24rpx !important;
  168. }
  169. .custom-textarea {
  170. width: 100%;
  171. margin-top: 22rpx;
  172. }
  173. ::v-deep .u-input {
  174. text-align: left !important;
  175. }
  176. </style>