123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <template>
- <view class="real-name">
- <u-form :model="form" ref="uForm" label-width='155'>
- <u-form-item label="现工作单位">
- <u-input v-model="form.work_units" placeholder="请填写现工作单位" />
- </u-form-item>
- <u-form-item label="现工作地址">
- <u-input v-model="form.work_address" placeholder="请填写现工作地址" />
- </u-form-item>
- <u-form-item label="工作邮编">
- <u-input v-model="form.work_postcode" placeholder="请填写工作邮编" />
- </u-form-item>
- <u-form-item label="工作职务">
- <u-input v-model="form.work_position" placeholder="工作职务" />
- </u-form-item>
- <u-form-item label="工作经历">
-
- </u-form-item>
- <u-form-item>
- <u-input v-model="form.work_experience" :type="type" :border="border" :height="height"
- :auto-height="autoHeight" placeholder="请输入工作经历"/>
- </u-form-item>
- </u-form>
- <button class="buttom" @click="save()">保存</button>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- form: {},
- type: 'textarea',
- border: true,
- height: 200,
- autoHeight: true,
- }
- },
- onLoad(options) {
-
- if (options.type == 0) {
- this.getMe()
- }
- },
- onShow() {
- this.form = this.$store.state.vuex_user
- },
- methods: {
-
- save() {
- this.$u.post('/page/update-people-info', this.form).then(res => {
- console.log(res, 'pppp')
- uni.showToast({
- title: res.message,
- icon: 'none'
- })
- this.$u.vuex('vuex_user', this.form);
- setTimeout(function() {
- uni.navigateBack()
- }, 1000)
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .upload_image {
- width: 90%;
- margin: 0 auto;
- }
- .complate,
- .complate1 {
- width: 50%;
- margin: 0 auto;
- margin-top: 20%;
- line-height: 44px;
- text-align: center;
- height: 44px;
- background: #79573D;
- opacity: 1;
- border-radius: 24px;
- font-size: 18px;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- opacity: 1;
- }
- .complate1 {
- margin-top: 30px;
- }
- .real-name {
- padding: 0 16px;
- padding-bottom: 40px;
- .name_item {
- margin-top: 20px !important;
- }
- .item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 46px;
- line-height: 46px;
- // margin-top: 10px;
- .label {
- flex: 0 0 40%;
- font-size: 16px;
- font-family: PingFang SC;
- font-weight: bold;
- line-height: 20px;
- color: #282828;
- opacity: 1;
- }
- .right {
- // flex: 1;
- font-size: 13px;
- font-family: PingFang SC;
- font-weight: 400;
- line-height: 20px;
- color: #282828;
- opacity: 0.42;
- text-align: right;
- height: 20px;
- // overflow: hidden;
- display: flex;
- align-items: center;
- text {
- display: inline-block;
- // width: 200px;
- height: 20px;
- line-height: 20px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
- }
- .form {
- position: relative;
- .back {
- position: absolute;
- left: 10px;
- top: 0px;
- width: 30px;
- height: 44px;
- line-height: 44px;
- text-align: center;
- z-index: 9999;
- // background: #18B566;
- }
- .title {
- padding: 0 20px;
- height: 40px;
- line-height: 40px;
- }
- .input {
- margin: 0 20px;
- height: 40px;
- line-height: 40px;
- border-bottom: solid 1px rgba(175, 175, 175, .2);
- }
- }
- .item1 {
- .dec {
- font-size: 13px;
- font-family: PingFang SC;
- font-weight: 400;
- line-height: 20px;
- color: #AFAFAF;
- opacity: 1;
- padding-bottom: 10px;
- border-bottom: solid 1px rgba(175, 175, 175, .2);
- }
- }
- .buttom {
- width: 229px;
- height: 56px;
- line-height: 56px;
- background: #79573D;
- text-align: center;
- border-radius: 28px;
- margin: 0 auto;
- margin-top: 50px;
- font-size: 18px;
- font-family: PingFang SC;
- font-weight: bold;
- color: #fff;
- opacity: 1;
- }
- }
- </style>
|