|
@@ -25,8 +25,6 @@ const defaultAccountInfo = {
|
|
|
userId: ''
|
|
|
}
|
|
|
|
|
|
-let phone = ''
|
|
|
-
|
|
|
const tabUrl = [
|
|
|
'pages/index/position',
|
|
|
'pages/index/communicate',
|
|
@@ -67,7 +65,6 @@ export const userStore = defineStore('user', {
|
|
|
},
|
|
|
|
|
|
async handleRegister (query) {
|
|
|
- phone = query.phone || ''
|
|
|
const { data, code } = await userRegister(query)
|
|
|
if (code === 0) {
|
|
|
uni.showToast({
|
|
@@ -82,7 +79,6 @@ export const userStore = defineStore('user', {
|
|
|
// 扫码注册登录
|
|
|
async handleShareUserRegister (query) {
|
|
|
try {
|
|
|
- phone = query.phone || ''
|
|
|
const { data, code } = await shareUserRegister(query)
|
|
|
if (code === 0) {
|
|
|
uni.showToast({
|
|
@@ -103,8 +99,6 @@ export const userStore = defineStore('user', {
|
|
|
|
|
|
// 校验是否完善人才必填信息
|
|
|
checkPersonBaseInfoFun(data) {
|
|
|
- data = data || {}
|
|
|
- if (phone && !data.phone) data.phone = phone; data.mobile = phone
|
|
|
const necessaryInfoReady = checkPersonBaseInfo(data)
|
|
|
data.necessaryInfoReady = necessaryInfoReady
|
|
|
if (necessaryInfoReady) closeAuthModal()
|