diff --git a/src/common/config.js b/src/common/config.js new file mode 100644 index 0000000..1bd6de7 --- /dev/null +++ b/src/common/config.js @@ -0,0 +1,12 @@ + +export var config={ + //服务器地址 + server:"http://192.168.50.73", +// 接口 + interface:{ + //图片解析 + image_parse:"/api/BaiduImage.php?XDEBUG_SESSION_START=PHPSTORM", + // 文本查询 + text_query:"/api/QueryText.php?XDEBUG_SESSION_START=PHPSTORM" + } +} \ No newline at end of file diff --git a/src/pages/waste_sorting/baike.vue b/src/pages/waste_sorting/baike.vue index 462ed4d..d66e62b 100644 --- a/src/pages/waste_sorting/baike.vue +++ b/src/pages/waste_sorting/baike.vue @@ -1,62 +1,251 @@ \ No newline at end of file diff --git a/src/pages/waste_sorting/query.vue b/src/pages/waste_sorting/query.vue index e0ffe2c..ae8a1da 100644 --- a/src/pages/waste_sorting/query.vue +++ b/src/pages/waste_sorting/query.vue @@ -8,7 +8,8 @@ - + @@ -17,45 +18,181 @@ 点击图标拍照查询 - + + + + + 查询结果 + + + 垃圾 + 分类 + + + {{item.name}} + {{getWasteSorting(item.category)}} + + + + \ No newline at end of file diff --git a/src/static/photo128x128.gif b/src/static/photo128x128.gif new file mode 100644 index 0000000..90fce44 Binary files /dev/null and b/src/static/photo128x128.gif differ diff --git a/src/static/photo128x128.png b/src/static/photo128x128.png new file mode 100644 index 0000000..3620ecd Binary files /dev/null and b/src/static/photo128x128.png differ