diff --git a/pages/examtest/note.js b/pages/examtest/note.js index b0d4562..7bb43cc 100644 --- a/pages/examtest/note.js +++ b/pages/examtest/note.js @@ -55,12 +55,17 @@ Page({ let ksdata = res.data ksdata['testdisable'] = false - if (ksdata.notinTime == 1) { + if(ksdata.state == 0){ + ksdata['testdisable'] = true + ksdata['msg'] = '考试已关闭!' + } + else if (ksdata.notinTime == 1) { ksdata['testdisable'] = true ksdata['msg'] = '不在考试期限范围内!' } - if (ksdata.testnum == 0) { + else if (ksdata.testnum == 0) { ksdata['testdisable'] = false + ksdata['msg'] = '' }else{ ksdata['testdisable'] = true ksdata['msg'] = '您已考过!' diff --git a/pages/examtest/note.wxml b/pages/examtest/note.wxml index 6a8601b..e9b5eb5 100644 --- a/pages/examtest/note.wxml +++ b/pages/examtest/note.wxml @@ -29,5 +29,5 @@ {{msg}} - + \ No newline at end of file diff --git a/project.config.json b/project.config.json index 5e8956e..59ec8df 100644 --- a/project.config.json +++ b/project.config.json @@ -1,59 +1,59 @@ { - "description": "项目配置文件。", - "setting": { - "urlCheck": false, - "es6": true, - "enhance": false, - "postcss": true, - "preloadBackgroundData": false, - "minified": true, - "newFeature": true, - "coverView": true, - "nodeModules": true, - "autoAudits": false, - "showShadowRootInWxmlPanel": true, - "scopeDataCheck": false, - "uglifyFileName": false, - "checkInvalidKey": true, - "checkSiteMap": true, - "uploadWithSourceMap": true, - "compileHotReLoad": false, - "useMultiFrameRuntime": false, - "useApiHook": true, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "useIsolateContext": true, - "useCompilerModule": true, - "userConfirmedUseCompilerModuleSwitch": false, - "packNpmManually": false, - "packNpmRelationList": [] - }, - "compileType": "miniprogram", - "libVersion": "2.9.4", - "appid": "wx5c39b569f01c27db", - "projectname": "aqyj", - "isGameTourist": false, - "simulatorType": "wechat", - "simulatorPluginLibVersion": {}, - "condition": { - "search": { - "current": -1, - "list": [] - }, - "conversation": { - "current": -1, - "list": [] - }, - "game": { - "currentL": -1, - "list": [] - }, - "miniprogram": { - "current": -1, - "list": [] - } - } + "description": "项目配置文件。", + "setting": { + "urlCheck": false, + "es6": true, + "enhance": false, + "postcss": true, + "preloadBackgroundData": false, + "minified": true, + "newFeature": true, + "coverView": true, + "nodeModules": true, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "uglifyFileName": false, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "useIsolateContext": true, + "useCompilerModule": false, + "userConfirmedUseCompilerModuleSwitch": false, + "useMultiFrameRuntime": false, + "useApiHook": true, + "packNpmManually": false, + "packNpmRelationList": [] + }, + "compileType": "miniprogram", + "libVersion": "2.9.4", + "appid": "wx5c39b569f01c27db", + "projectname": "aqyj", + "isGameTourist": false, + "simulatorType": "wechat", + "simulatorPluginLibVersion": {}, + "condition": { + "search": { + "current": -1, + "list": [] + }, + "conversation": { + "current": -1, + "list": [] + }, + "game": { + "currentL": -1, + "list": [] + }, + "miniprogram": { + "current": -1, + "list": [] + } + } } \ No newline at end of file