1、代码格式话

2、接口异常修改提示语
dev
liujun 2024-12-24 18:49:00 +08:00
parent d26541cbfb
commit d32d5b310d
1 changed files with 6 additions and 7 deletions

View File

@ -88,7 +88,7 @@ export default {
this.fnUpdateVersion(false) this.fnUpdateVersion(false)
}, },
methods: { methods: {
async fnScan() { async fnScan() {
uni.scanCode({ uni.scanCode({
success: async (res) => { success: async (res) => {
let obj = JSON.parse(res.result) let obj = JSON.parse(res.result)
@ -99,12 +99,11 @@ export default {
CORPINFO_ID: obj[0].CORPINFO_ID, CORPINFO_ID: obj[0].CORPINFO_ID,
RELEVANT_UNIT_NAME: obj[0].RELEVANT_UNIT_NAME RELEVANT_UNIT_NAME: obj[0].RELEVANT_UNIT_NAME
}); });
if (info.code === 200){ if (info.code === 200) {
uni.$u.toast('入职成功') uni.$u.toast('入职成功')
}else { } else {
uni.$u.toast('入职失败,请联系管理员') uni.$u.toast(info.msg ? info.msg : '系统异常请联系管理员')
} }
} else if (type === '1') { } else if (type === '1') {
// type=1 // type=1
uni.$u.route({ uni.$u.route({
@ -118,8 +117,8 @@ export default {
} }
}); });
}, },
fnIsShow(index){ fnIsShow(index) {
if(index === 5) return !!this.userInfo.CORPINFO_ID if (index === 5) return !!this.userInfo.CORPINFO_ID
return true return true
}, },
fnNavigator(e) { fnNavigator(e) {