逻辑调整优化
This commit is contained in:
parent
814573aa62
commit
59fc1be7c7
@ -57,6 +57,7 @@
|
|||||||
import {
|
import {
|
||||||
RegisterUser
|
RegisterUser
|
||||||
} from '../../services/apply.js'
|
} from '../../services/apply.js'
|
||||||
|
import config from '../../config/common.js'
|
||||||
import {
|
import {
|
||||||
isChinaMobilePhone,
|
isChinaMobilePhone,
|
||||||
easyCheckID,
|
easyCheckID,
|
||||||
@ -66,6 +67,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showSex: false,
|
showSex: false,
|
||||||
|
appurl: config.uni_app_url,
|
||||||
formatter: null,
|
formatter: null,
|
||||||
pickerShow: false,
|
pickerShow: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
@ -217,16 +219,31 @@
|
|||||||
// }
|
// }
|
||||||
RegisterUser(json).then((res) => {
|
RegisterUser(json).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
console.log('成功', res);
|
|
||||||
this.loading = false
|
this.loading = false
|
||||||
uni.navigateTo({
|
uni.showToast({
|
||||||
url: '/pages/apply/complete?type=success'
|
title: '注册成功!',
|
||||||
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.hideToast();
|
||||||
|
location.href = this.appurl
|
||||||
|
// uni.redirectTo({
|
||||||
|
// url: '/pages/webview/webview?url=' + this.appurl
|
||||||
|
// })
|
||||||
|
},1500)
|
||||||
|
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/pages/apply/complete?type=success'
|
||||||
|
// })
|
||||||
} else {
|
} else {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
uni.navigateTo({
|
uni.showToast({
|
||||||
url: `/pages/apply/complete?type=failed&title=${res.msg}`
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: `/pages/apply/complete?type=failed&title=${res.msg}`
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
|||||||
@ -117,18 +117,18 @@
|
|||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
getCaidan() {
|
getCaidan() {
|
||||||
|
|
||||||
const json = {
|
const json = {
|
||||||
Company: this.company,
|
Company: uni.getStorageSync('Company'),
|
||||||
Post: '搬运工',
|
Post: '搬运工',
|
||||||
Type: 1
|
Type: 1
|
||||||
}
|
}
|
||||||
getMenu(json).then((res) => {
|
getMenu(json).then((res) => {
|
||||||
console.log('成功', res);
|
|
||||||
this.baseList = res.data
|
this.baseList = res.data
|
||||||
|
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.error('失败', err);
|
uni.showToast({
|
||||||
|
title: '请求错误',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,10 @@ import handle401 from './handle401'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
send(params) {
|
send(params) {
|
||||||
let Company = uni.getStorageSync('Company')
|
const pages = getCurrentPages()
|
||||||
|
const currentPage = pages[pages.length - 1]
|
||||||
|
const Options = currentPage.options
|
||||||
|
let Company = Options.Company?Options.Company:'XLK'
|
||||||
let tenantId = ''
|
let tenantId = ''
|
||||||
if (Company == 'DCJD') {
|
if (Company == 'DCJD') {
|
||||||
tenantId = 'A0000025'
|
tenantId = 'A0000025'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user