job_edit.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <view class="real-name">
  3. <u-form :model="form" ref="uForm" label-width='155'>
  4. <u-form-item label="现工作单位">
  5. <u-input v-model="form.work_units" placeholder="请填写现工作单位" />
  6. </u-form-item>
  7. <u-form-item label="现工作地址">
  8. <u-input v-model="form.work_address" placeholder="请填写现工作地址" />
  9. </u-form-item>
  10. <u-form-item label="工作邮编">
  11. <u-input v-model="form.work_postcode" placeholder="请填写工作邮编" />
  12. </u-form-item>
  13. <u-form-item label="工作职务">
  14. <u-input v-model="form.work_position" placeholder="工作职务" />
  15. </u-form-item>
  16. <u-form-item label="工作经历">
  17. </u-form-item>
  18. <u-form-item>
  19. <u-input v-model="form.work_experience" :type="type" :border="border" :height="height"
  20. :auto-height="autoHeight" placeholder="请输入工作经历"/>
  21. </u-form-item>
  22. </u-form>
  23. <button class="buttom" @click="save()">保存</button>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. form: {},
  31. type: 'textarea',
  32. border: true,
  33. height: 200,
  34. autoHeight: true,
  35. }
  36. },
  37. onLoad(options) {
  38. if (options.type == 0) {
  39. this.getMe()
  40. }
  41. },
  42. onShow() {
  43. this.form = this.$store.state.vuex_user
  44. },
  45. methods: {
  46. save() {
  47. this.$u.post('/page/update-people-info', this.form).then(res => {
  48. console.log(res, 'pppp')
  49. uni.showToast({
  50. title: res.message,
  51. icon: 'none'
  52. })
  53. this.$u.vuex('vuex_user', this.form);
  54. setTimeout(function() {
  55. uni.navigateBack()
  56. }, 1000)
  57. })
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .upload_image {
  64. width: 90%;
  65. margin: 0 auto;
  66. }
  67. .complate,
  68. .complate1 {
  69. width: 50%;
  70. margin: 0 auto;
  71. margin-top: 20%;
  72. line-height: 44px;
  73. text-align: center;
  74. height: 44px;
  75. background: #79573D;
  76. opacity: 1;
  77. border-radius: 24px;
  78. font-size: 18px;
  79. font-family: PingFang SC;
  80. font-weight: 500;
  81. color: #FFFFFF;
  82. opacity: 1;
  83. }
  84. .complate1 {
  85. margin-top: 30px;
  86. }
  87. .real-name {
  88. padding: 0 16px;
  89. padding-bottom: 40px;
  90. .name_item {
  91. margin-top: 20px !important;
  92. }
  93. .item {
  94. display: flex;
  95. align-items: center;
  96. justify-content: space-between;
  97. height: 46px;
  98. line-height: 46px;
  99. // margin-top: 10px;
  100. .label {
  101. flex: 0 0 40%;
  102. font-size: 16px;
  103. font-family: PingFang SC;
  104. font-weight: bold;
  105. line-height: 20px;
  106. color: #282828;
  107. opacity: 1;
  108. }
  109. .right {
  110. // flex: 1;
  111. font-size: 13px;
  112. font-family: PingFang SC;
  113. font-weight: 400;
  114. line-height: 20px;
  115. color: #282828;
  116. opacity: 0.42;
  117. text-align: right;
  118. height: 20px;
  119. // overflow: hidden;
  120. display: flex;
  121. align-items: center;
  122. text {
  123. display: inline-block;
  124. // width: 200px;
  125. height: 20px;
  126. line-height: 20px;
  127. overflow: hidden;
  128. white-space: nowrap;
  129. text-overflow: ellipsis;
  130. }
  131. }
  132. }
  133. .form {
  134. position: relative;
  135. .back {
  136. position: absolute;
  137. left: 10px;
  138. top: 0px;
  139. width: 30px;
  140. height: 44px;
  141. line-height: 44px;
  142. text-align: center;
  143. z-index: 9999;
  144. // background: #18B566;
  145. }
  146. .title {
  147. padding: 0 20px;
  148. height: 40px;
  149. line-height: 40px;
  150. }
  151. .input {
  152. margin: 0 20px;
  153. height: 40px;
  154. line-height: 40px;
  155. border-bottom: solid 1px rgba(175, 175, 175, .2);
  156. }
  157. }
  158. .item1 {
  159. .dec {
  160. font-size: 13px;
  161. font-family: PingFang SC;
  162. font-weight: 400;
  163. line-height: 20px;
  164. color: #AFAFAF;
  165. opacity: 1;
  166. padding-bottom: 10px;
  167. border-bottom: solid 1px rgba(175, 175, 175, .2);
  168. }
  169. }
  170. .buttom {
  171. width: 229px;
  172. height: 56px;
  173. line-height: 56px;
  174. background: #79573D;
  175. text-align: center;
  176. border-radius: 28px;
  177. margin: 0 auto;
  178. margin-top: 50px;
  179. font-size: 18px;
  180. font-family: PingFang SC;
  181. font-weight: bold;
  182. color: #fff;
  183. opacity: 1;
  184. }
  185. }
  186. </style>