From 69da4f7bec409a31ff5d3b47c69f1ed893f5d58d Mon Sep 17 00:00:00 2001 From: mojuncong Date: Fri, 20 May 2016 22:14:57 +0800 Subject: [PATCH] 5/20 --- .../Controller/GoodsQueryController.class.php | 11 ++- .../Service/GoodsQueryService.class.php | 11 +++ .../View/GoodsQuery/querygoodsprice.html | 91 +++++++++++++++++++ web/Application/Mobile/View/Index/index.html | 2 +- web/Public/mui/js/goodsquery.js | 22 +++++ 5 files changed, 135 insertions(+), 2 deletions(-) create mode 100644 web/Application/Mobile/Service/GoodsQueryService.class.php create mode 100644 web/Application/Mobile/View/GoodsQuery/querygoodsprice.html create mode 100644 web/Public/mui/js/goodsquery.js diff --git a/web/Application/Mobile/Controller/GoodsQueryController.class.php b/web/Application/Mobile/Controller/GoodsQueryController.class.php index 2316115..bb0984b 100644 --- a/web/Application/Mobile/Controller/GoodsQueryController.class.php +++ b/web/Application/Mobile/Controller/GoodsQueryController.class.php @@ -3,10 +3,19 @@ namespace Mobile\Controller; use Think\Controller; +use Mobile\Service\GoodsQueryService; + + class GoodsQueryController extends Controller{ - public function querry(){ + public function querygoodsprice(){ $this->assign("uri", __ROOT__ . "/"); $this->display(); } + + public function select(){ + $this->assign("uri", __ROOT__ . "/"); + $selected= new GoodsQueryService(); + $this->ajaxReturn($selected->warehouse()); + } } \ No newline at end of file diff --git a/web/Application/Mobile/Service/GoodsQueryService.class.php b/web/Application/Mobile/Service/GoodsQueryService.class.php new file mode 100644 index 0000000..5639012 --- /dev/null +++ b/web/Application/Mobile/Service/GoodsQueryService.class.php @@ -0,0 +1,11 @@ +query($sql); + return $warehouse; + + + } + } \ No newline at end of file diff --git a/web/Application/Mobile/View/GoodsQuery/querygoodsprice.html b/web/Application/Mobile/View/GoodsQuery/querygoodsprice.html new file mode 100644 index 0000000..5666cce --- /dev/null +++ b/web/Application/Mobile/View/GoodsQuery/querygoodsprice.html @@ -0,0 +1,91 @@ + + + + + + + +商品价格查询 + + + + + +
+
+
+
+ + +
+
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/Application/Mobile/View/Index/index.html b/web/Application/Mobile/View/Index/index.html index 2f1e9a8..2a61c2a 100644 --- a/web/Application/Mobile/View/Index/index.html +++ b/web/Application/Mobile/View/Index/index.html @@ -2,7 +2,7 @@