| | |
| | | <!-- <tem-session/> --> |
| | | <!-- </up-popup> --> |
| | | <view class="tabbtns"> |
| | | <up-button color='#fece01' class="text-69" text="保存" @click='saveUserWorker'></up-button> |
| | | <up-button color='#fece01' class="text-69" text="保存" :loading='isLoading' loadingText="保存中" |
| | | @click='saveUserWorker'></up-button> |
| | | </view> |
| | | </up-form> |
| | | </view> |
| | |
| | | } |
| | | console.log(userInfo,data && data.userWorker,'data && data.userWorker'); |
| | | }) |
| | | let isLoading = ref(false) |
| | | let rules = { |
| | | idCardFace: { |
| | | required: true, |
| | |
| | | |
| | | const saveUserWorker = (e) => { |
| | | formRef.value.validate().then(res => { |
| | | isLoading.value = true |
| | | let obj = { |
| | | imgBase64: idCardFaceBase64, |
| | | cordId: userInfo.idCode, //身份证号码 |
| | |
| | | title: "保存成功!", |
| | | icon: "success" |
| | | }) |
| | | uni.navigateBack() |
| | | } |
| | | isLoading.value = false |
| | | }) |
| | | } else { |
| | | $util.showToast({ |
| | | title: res.msg |
| | | }) |
| | | isLoading.value = false |
| | | } |
| | | }) |
| | | }).catch(errors => { |