|
@@ -50,7 +50,7 @@
|
|
|
|
|
|
<AdvertisePop></AdvertisePop>
|
|
<AdvertisePop></AdvertisePop>
|
|
|
|
|
|
- <uni-popup ref="popup" background-color="#fff" type="bottom" :is-mask-click="false">
|
|
|
|
|
|
+ <!-- <uni-popup ref="popup" background-color="#fff" type="bottom" :is-mask-click="false">
|
|
<view style="padding: 20px;">
|
|
<view style="padding: 20px;">
|
|
<view class="text-center ss-m-b-50 font-size-20 color-primary">请完善您的基本信息</view>
|
|
<view class="text-center ss-m-b-50 font-size-20 color-primary">请完善您的基本信息</view>
|
|
<uni-forms
|
|
<uni-forms
|
|
@@ -84,7 +84,7 @@
|
|
<view class="f-horizon-center">
|
|
<view class="f-horizon-center">
|
|
<button type="primary" size="default" class="send-button" @click="submit">提 交</button>
|
|
<button type="primary" size="default" class="send-button" @click="submit">提 交</button>
|
|
</view>
|
|
</view>
|
|
- </uni-popup>
|
|
|
|
|
|
+ </uni-popup> -->
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -98,15 +98,16 @@ import { onLoad } from '@dcloudio/uni-app'
|
|
import { useIM } from '@/hooks/useIM'
|
|
import { useIM } from '@/hooks/useIM'
|
|
import { watch } from 'vue'
|
|
import { watch } from 'vue'
|
|
import AdvertisePop from '@/components/Advertisement'
|
|
import AdvertisePop from '@/components/Advertisement'
|
|
-import { dictObj } from '@/utils/position.js'
|
|
|
|
-import { savePersonSimpleInfo } from '@/api/user'
|
|
|
|
|
|
+// import { dictObj } from '@/utils/position.js'
|
|
|
|
+// import { savePersonSimpleInfo } from '@/api/user'
|
|
|
|
+// import { showAuthModal } from '@/hooks/useModal'
|
|
|
|
|
|
const useUserStore = userStore()
|
|
const useUserStore = userStore()
|
|
const smsLoginRef = ref()
|
|
const smsLoginRef = ref()
|
|
const protocol = ref(false)
|
|
const protocol = ref(false)
|
|
-const popup = ref()
|
|
|
|
-const baseInfoRef = ref()
|
|
|
|
-const formData = ref({})
|
|
|
|
|
|
+// const popup = ref()
|
|
|
|
+// const baseInfoRef = ref()
|
|
|
|
+// const formData = ref({})
|
|
const state = ref({
|
|
const state = ref({
|
|
isMobileEnd: false, // 手机号输入完毕
|
|
isMobileEnd: false, // 手机号输入完毕
|
|
codeText: '获取验证码',
|
|
codeText: '获取验证码',
|
|
@@ -120,26 +121,26 @@ const state = ref({
|
|
phone: mobile
|
|
phone: mobile
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-const formRules = {
|
|
|
|
- name:{
|
|
|
|
- rules: [{required: true, errorMessage: '请输入姓名' }]
|
|
|
|
- },
|
|
|
|
- phone:{
|
|
|
|
- rules: [{required: true, errorMessage: '请输入联系电话' }]
|
|
|
|
- },
|
|
|
|
- sex : {
|
|
|
|
- rules: [{required: true, errorMessage: '请选择您的性别' }]
|
|
|
|
- },
|
|
|
|
- expType: {
|
|
|
|
- rules: [{required: true, errorMessage: '请选择您的工作年限' }]
|
|
|
|
- },
|
|
|
|
- eduType: {
|
|
|
|
- rules: [{required: true, errorMessage: '请选择您的最高学历' }]
|
|
|
|
- },
|
|
|
|
- jobStatus: {
|
|
|
|
- rules: [{required: true, errorMessage: '请选择您的求职状态' }]
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+// const formRules = {
|
|
|
|
+// name:{
|
|
|
|
+// rules: [{required: true, errorMessage: '请输入姓名' }]
|
|
|
|
+// },
|
|
|
|
+// phone:{
|
|
|
|
+// rules: [{required: true, errorMessage: '请输入联系电话' }]
|
|
|
|
+// },
|
|
|
|
+// sex : {
|
|
|
|
+// rules: [{required: true, errorMessage: '请选择您的性别' }]
|
|
|
|
+// },
|
|
|
|
+// expType: {
|
|
|
|
+// rules: [{required: true, errorMessage: '请选择您的工作年限' }]
|
|
|
|
+// },
|
|
|
|
+// eduType: {
|
|
|
|
+// rules: [{required: true, errorMessage: '请选择您的最高学历' }]
|
|
|
|
+// },
|
|
|
|
+// jobStatus: {
|
|
|
|
+// rules: [{required: true, errorMessage: '请选择您的求职状态' }]
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
|
|
const { resetConfig } = useIM()
|
|
const { resetConfig } = useIM()
|
|
watch(() => useUserStore?.accountInfo?.userId, (newVal, oldVal) => {
|
|
watch(() => useUserStore?.accountInfo?.userId, (newVal, oldVal) => {
|
|
@@ -197,25 +198,25 @@ const handleLogin = async () => {
|
|
if (!result || !Object.keys(result).length) return
|
|
if (!result || !Object.keys(result).length) return
|
|
|
|
|
|
uni.showToast({ icon: 'none', title: '请先完善信息' })
|
|
uni.showToast({ icon: 'none', title: '请先完善信息' })
|
|
- formData.value.phone = state.value.sms.phone
|
|
|
|
- popup.value.open()
|
|
|
|
|
|
+ // formData.value.phone = state.value.sms.phone
|
|
|
|
+ // popup.value.open()
|
|
}
|
|
}
|
|
|
|
|
|
-const submit = async () => {
|
|
|
|
- const validate = await unref(baseInfoRef).validate()
|
|
|
|
- if (!validate) return uni.showToast({ title: '请将信息补充完整', icon: 'none' })
|
|
|
|
- try {
|
|
|
|
- await savePersonSimpleInfo(formData.value)
|
|
|
|
- uni.showToast({ title: '保存成功', icon: 'none' })
|
|
|
|
- await useUserStore.getInfo()
|
|
|
|
- await useUserStore.getUserInfo()
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '/pages/index/position'
|
|
|
|
- })
|
|
|
|
- } catch (err) {
|
|
|
|
- uni.showToast({ title: err.msg || '保存失败', icon: 'none' })
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+// const submit = async () => {
|
|
|
|
+// const validate = await unref(baseInfoRef).validate()
|
|
|
|
+// if (!validate) return uni.showToast({ title: '请将信息补充完整', icon: 'none' })
|
|
|
|
+// try {
|
|
|
|
+// await savePersonSimpleInfo(formData.value)
|
|
|
|
+// uni.showToast({ title: '保存成功', icon: 'none' })
|
|
|
|
+// await useUserStore.getInfo()
|
|
|
|
+// await useUserStore.getUserInfo()
|
|
|
|
+// uni.switchTab({
|
|
|
|
+// url: '/pages/index/position'
|
|
|
|
+// })
|
|
|
|
+// } catch (err) {
|
|
|
|
+// uni.showToast({ title: err.msg || '保存失败', icon: 'none' })
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|
// const showProtocolToast = () => {
|
|
// const showProtocolToast = () => {
|