From 601610d187333265eb89eae5f9e4de482f294282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E6=A9=99=E6=A5=8A?= <2370374436@qq.com> Date: Thu, 24 Oct 2019 04:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=94=E9=A2=98=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/common/config.js | 4 +- src/pages/waste_sorting/query.vue | 2 +- src/pages/waste_sorting/question.vue | 118 +++++++++++++++++++++------ yarn.lock | 8 +- 5 files changed, 102 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index a7476e9..77c0f49 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "vuex": "^3.0.1" }, "devDependencies": { - "@dcloudio/uni-cli-shared": "^2.0.0-23320190923002", + "@dcloudio/uni-cli-shared": "2.0.0-23620191020003", "@dcloudio/uni-template-compiler": "^2.0.0-23320190923002", "@dcloudio/vue-cli-plugin-hbuilderx": "^2.0.0-23320190923002", "@dcloudio/vue-cli-plugin-uni": "^2.0.0-23320190923002", diff --git a/src/common/config.js b/src/common/config.js index 1fefabb..5958e75 100644 --- a/src/common/config.js +++ b/src/common/config.js @@ -7,7 +7,9 @@ export var config={ //图片解析 image_parse:"/api/BaiduImage.php", // 文本查询 - text_query:"/api/QueryText.php" + text_query:"/api/QueryText.php", + // 生成题库 + create_question:"/api/QuestionAPI.php" } } diff --git a/src/pages/waste_sorting/query.vue b/src/pages/waste_sorting/query.vue index 000f1ed..b7c06dd 100644 --- a/src/pages/waste_sorting/query.vue +++ b/src/pages/waste_sorting/query.vue @@ -16,7 +16,7 @@ - 点击图标拍照查询 + 打开相机拍照查询 diff --git a/src/pages/waste_sorting/question.vue b/src/pages/waste_sorting/question.vue index a75461d..9056b59 100644 --- a/src/pages/waste_sorting/question.vue +++ b/src/pages/waste_sorting/question.vue @@ -3,13 +3,13 @@ - {{question.question}} - - @@ -27,23 +27,77 @@ @@ -88,4 +145,15 @@ .button-group{ justify-content: center; } + .true{ + /*background-color: #75807f;*/ + background-color: lightgrey; + } + .true_font{ + color: green; + font-size: large; + } + .false{ + color: red; + } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 060f2b1..0e33706 100644 --- a/yarn.lock +++ b/yarn.lock @@ -674,10 +674,10 @@ resolved "https://registry.npm.taobao.org/@dcloudio/uni-app-plus/download/@dcloudio/uni-app-plus-2.0.0-23320190923002.tgz?cache=0&sync_timestamp=1569315602364&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40dcloudio%2Funi-app-plus%2Fdownload%2F%40dcloudio%2Funi-app-plus-2.0.0-23320190923002.tgz#219838f5134fdb53e3d596bfd2bf70a5f493027a" integrity sha1-IZg49RNP21Pj1Za/0r9wpfSTAno= -"@dcloudio/uni-cli-shared@^2.0.0-23320190923002": - version "2.0.0-23320190923002" - resolved "https://registry.npm.taobao.org/@dcloudio/uni-cli-shared/download/@dcloudio/uni-cli-shared-2.0.0-23320190923002.tgz?cache=0&sync_timestamp=1569315600613&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40dcloudio%2Funi-cli-shared%2Fdownload%2F%40dcloudio%2Funi-cli-shared-2.0.0-23320190923002.tgz#36f803aea3aa2ad7181c7083b553722fe0b8a740" - integrity sha1-NvgDrqOqKtcYHHCDtVNyL+C4p0A= +"@dcloudio/uni-cli-shared@2.0.0-23620191020003": + version "2.0.0-23620191020003" + resolved "https://registry.yarnpkg.com/@dcloudio/uni-cli-shared/-/uni-cli-shared-2.0.0-23620191020003.tgz#a0cc4ddc952129fcbb96b2ed3cef5bf179e7f854" + integrity sha512-eqjgFlDhd3OYmUrVBq3canAnIPFf9sZocQpYujMapZz1sLqx9rhP+caixC0IV3xMuB4WaQXeicDb2cPyg4Qvgw== dependencies: hash-sum "^1.0.2" strip-json-comments "^2.0.1"