refactor(qa-prevention-xgf-app): 优化二维码扫描功能- 修改二维码扫描结果的解析逻辑

- 更新用户信息获取方式- 调整二维码类型处理逻辑
- 优化电子工牌页面跳转注释
- 更新签到二维码处理方式

refactor(xgf_gwj_vue_2.0): 修改二维码对话框显示逻辑

- 将二维码图片以 JSON 格式存储
- 添加二维码类型信息
hyx_2025-01-13_xgf2.0
wangyan 2025-03-07 16:38:14 +08:00
parent 932f5955ca
commit d630c82b07
1 changed files with 14 additions and 14 deletions

View File

@ -124,14 +124,14 @@ export default {
success: async (res) => {
// let obj = JSON.parse(res.result)
// let type = obj[0].CODE_TYPE
const { classId, type } = JSON.parse(response.result)
const { classId, type, RELEVANT_UNIT_NAME } = JSON.parse(res.result)
const classInfo = await this.handleGetListAll(classId);
switch(type) {
case "0": {
let info = await setEntryV1({
userId: this.userInfo.USER_ID,
corpinfoId: obj[0].CORPINFO_ID,
RELEVANT_UNIT_NAME: obj[0].RELEVANT_UNIT_NAME,
// corpinfoId: obj[0].CORPINFO_ID,
RELEVANT_UNIT_NAME: RELEVANT_UNIT_NAME,
postMethod: 'application/json'
})
if (info.code === 200) {
@ -141,17 +141,17 @@ export default {
}
break;
};
case "1": {
// type=1
uni.$u.route({
url: '/pages/electronic_work_card/index',
params: {
USER_ID: obj[0].USER_ID,
CODE_TYPE: obj[0].CODE_TYPE
}
})
break;
};
// case "1": {
// // type=1
// uni.$u.route({
// url: '/pages/electronic_work_card/index',
// params: {
// USER_ID: obj[0].USER_ID,
// CODE_TYPE: obj[0].CODE_TYPE
// }
// })
// break;
// };
case "2": {
// , [type: 2 --> ]
if (classInfo) {