|
@@ -83,7 +83,9 @@
|
|
|
<view class="form-item required">
|
|
|
<view class="form-label">出生年月</view>
|
|
|
<view @click="pickerShow" class="form-input-time">
|
|
|
- <text>{{ formData.birthDate?formData.birthDate:'请选择出生年月日' }}</text>
|
|
|
+ <text>{{
|
|
|
+ formData.birthDate ? formData.birthDate : "请选择出生年月日"
|
|
|
+ }}</text>
|
|
|
<image src="@/static/images/jobApplicant/rili.svg" mode="scaleToFill" />
|
|
|
</view>
|
|
|
</view>
|
|
@@ -92,7 +94,7 @@
|
|
|
<view class="form-item required">
|
|
|
<view class="form-label">求职状态</view>
|
|
|
<view @click.stop="showJobStatus" class="form-input-time">
|
|
|
- <text>离职&随时到岗</text>
|
|
|
+ <text>{{ formData.advantages?formData.advantages:'请选择求职状态' }}</text>
|
|
|
<image src="@/static/images/jobApplicant/icon-next.svg" mode="scaleToFill" />
|
|
|
</view>
|
|
|
</view>
|
|
@@ -241,12 +243,7 @@
|
|
|
@confirm="confirmBirthDate"
|
|
|
@cancel="showBirthDatePicker = false"
|
|
|
></u-picker>
|
|
|
- <u-picker
|
|
|
- v-model="showStatus"
|
|
|
- :columns="statusColumns"
|
|
|
- @confirm="confirmStatus"
|
|
|
- @cancel="showStatus = false"
|
|
|
- ></u-picker>
|
|
|
+ <u-action-sheet :list="statusList" v-model="showStatus" @click="confirmStatus"></u-action-sheet>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -276,7 +273,7 @@ export default {
|
|
|
avatarUrl: "",
|
|
|
showBirthDatePicker: false,
|
|
|
dateColumns: [years, months, days],
|
|
|
- statusColumns: ["兼职", "在职", "离职&随时到岗"],
|
|
|
+ statusList: [{ text: "兼职" }, { text: "在职" }, { text: "离职&随时到岗" }],
|
|
|
showStatus: false,
|
|
|
formData: {
|
|
|
name: "",
|
|
@@ -298,14 +295,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
showJobStatus() {
|
|
|
- console.log('转台')
|
|
|
this.showStatus = true;
|
|
|
},
|
|
|
pickerShow() {
|
|
|
this.showBirthDatePicker = true;
|
|
|
},
|
|
|
- confirmStatus() {
|
|
|
+ confirmStatus(e) {
|
|
|
this.showStatus = false;
|
|
|
+ this.formData.advantages=this.statusList[e].text
|
|
|
},
|
|
|
// 选择头像
|
|
|
chooseAvatar() {
|
|
@@ -321,8 +318,7 @@ export default {
|
|
|
|
|
|
// 确认出生日期
|
|
|
confirmBirthDate(e) {
|
|
|
- console.log(e,'测试')
|
|
|
- const {year, month, day} = e;
|
|
|
+ const { year, month, day } = e;
|
|
|
this.formData.birthDate = `${year}-${month}-${day}`;
|
|
|
this.showBirthDatePicker = false;
|
|
|
},
|
|
@@ -371,6 +367,7 @@ export default {
|
|
|
uni.hideLoading();
|
|
|
uni.showToast({ title: "提交成功", icon: "success" });
|
|
|
// 实际开发中可以在这里添加跳转逻辑
|
|
|
+ uni.switchTab({ url: '/pages/index/index' })
|
|
|
}, 1500);
|
|
|
},
|
|
|
},
|