From cb5269edf093bd6682df7413e4cbb80bb77f569e Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Wed, 22 Feb 2023 09:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=A2=84=E7=BA=A6=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=8F=82=E6=95=B0=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/examProject.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/examProject.vue b/src/views/examProject.vue index acbdd39..e16b77d 100644 --- a/src/views/examProject.vue +++ b/src/views/examProject.vue @@ -112,21 +112,24 @@ export default { confirm() { let param = this.proArr; if (this.GlobalConfig.appMode) { - console.log(JSON.stringify(param)) - vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({data:param}), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { + // console.log(JSON.stringify(param)) + vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({ data: param }), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => { + + console.log('value', value); let retData = JSON.parse(value); - if (retData.success && retData.code == 200 && retData.data.code == 200) { + console.log('value2', retData); + if (retData.code == 200) { this.isShow = true; this.isSuccess = true } else { - this.failTips = retData.data != undefined ? retData.data.msg : ''; + this.failTips = retData.msg; this.isShow = true; this.isSuccess = false } }) } else { - postExam({data:param}).then(res => { + postExam({ data: param }).then(res => { console.log(res) if (res.code == 200) { this.isShow = true;