| | |
| | | <up-input v-model="enterpriseInfo.regtime" border="none" placeholder="请输入企业注册号" readonly></up-input> |
| | | </up-form-item> |
| | | <up-form-item label="企业地址" required prop="address" ref="item1"> |
| | | <up-input v-model="enterpriseInfo.address" border="none" placeholder="请输入企业地址" |
| | | readonly></up-input> |
| | | <up-input v-model="enterpriseInfo.address" border="none" placeholder="请输入企业地址" readonly></up-input> |
| | | </up-form-item> |
| | | <up-form-item label="联系人" required prop="contact" ref="item1"> |
| | | <up-input v-model="enterpriseInfo.contact" border="none" placeholder="请输入联系人"></up-input> |
| | |
| | | <up-textarea v-model="enterpriseInfo.resume" count placeholder="请输入公司简介" height='200' |
| | | maxlength='800'></up-textarea> |
| | | <view class="tabbtns"> |
| | | <up-button color='#fece01' class="text-69" text="保存" @click="saveUserCompany"></up-button> |
| | | <up-button color='#fece01' class="text-69" text="保存" :loading='isLoading' loadingText="保存中" |
| | | @click="saveUserCompany"></up-button> |
| | | </view> |
| | | </up-form> |
| | | </view> |
| | |
| | | enterpriseInfo.resume = data.resume |
| | | } |
| | | }) |
| | | |
| | | let isLoading = ref(false) |
| | | // 使用 ref 创建响应式引用 |
| | | const formRef = ref(null); |
| | | onReady(() => { |
| | |
| | | } |
| | | const saveUserCompany = () => { |
| | | formRef.value.validate().then(res => { |
| | | isLoading.value = true |
| | | $api.saveUserCompany(enterpriseInfo).then(res => { |
| | | if (res.code == 1) { |
| | | $api.getUser().then(res => { |
| | |
| | | title: "保存成功!", |
| | | icon: "success" |
| | | }) |
| | | uni.navigateBack() |
| | | } else { |
| | | $util.showToast({ |
| | | title: res.msg |
| | | }) |
| | | } |
| | | isLoading.value = false |
| | | }) |
| | | }).catch(errors => { |
| | | console.log(errors) |
| | |
| | | background-color: #fff; |
| | | padding: 0 20rpx; |
| | | } |
| | | .u-form-item__body{ |
| | | |
| | | .u-form-item__body { |
| | | padding: 5px 0 !important; |
| | | } |
| | | </style> |