diff --git a/pages/index/index.vue b/pages/index/index.vue index 1b39017..4f7fe2f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -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) {