From f1690b9471a9c5a31cf8906b3b89aee08bc0ebde Mon Sep 17 00:00:00 2001 From: caoming <604844710@qq.com> Date: Sat, 21 Dec 2019 16:09:02 +0800 Subject: [PATCH] 1. 维修单-维修中界面新增 --- app-wx/modules/order/views/default/index.php | 1 + app-wx/modules/order/views/default/pages/repairing-template.php | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ web/dist/js/order-app.js | 2 +- web/i/order/demo.jpg | Bin 0 -> 2157 bytes web/i/order/repairing_tip_image.png | Bin 0 -> 914 bytes web/src/js/order/app.js | 5 +++++ web/src/js/order/repairing-controller.js | 30 ++++++++++++++++++++++++++++++ 7 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 app-wx/modules/order/views/default/pages/repairing-template.php create mode 100644 web/i/order/demo.jpg create mode 100644 web/i/order/repairing_tip_image.png create mode 100644 web/src/js/order/repairing-controller.js diff --git a/app-wx/modules/order/views/default/index.php b/app-wx/modules/order/views/default/index.php index e22a212..ce917a4 100644 --- a/app-wx/modules/order/views/default/index.php +++ b/app-wx/modules/order/views/default/index.php @@ -23,6 +23,7 @@ function img($file, $path = '/i/') render('pages/index-template', ['asset' => $asset])?> render('pages/rank-template', ['asset' => $asset])?> render('pages/cost-list-template', ['asset' => $asset])?> +render('pages/repairing-template', ['asset' => $asset])?> diff --git a/web/dist/js/order-app.js b/web/dist/js/order-app.js index 09d35f2..c5f6c13 100644 --- a/web/dist/js/order-app.js +++ b/web/dist/js/order-app.js @@ -1 +1 @@ -define("order-app",["mk7/app"],function(n){var e=Dom7,i=function(){var n=e(".ui-loading-block");0==n.length&&(e(".view-main").html('

'),window.waitingTime=1e4,window.loaderTimer&&clearTimeout(window.loaderTimer),window.loaderTimer=setTimeout(function(){var n=document.getElementById("loader-inner"),e=document.createElement("p");e.className="notice",n&&(e.innerHTML='加载速度太慢?试试重新加载',n.appendChild(e))},window.waitingTime))},r=!0;return n.name="order",n.routes={index:function(){return r=!1,i(),n.runController("index")},rank:function(){return r=!1,i(),n.runController("rank")},"cost-list":function(){return r=!1,i(),n.runController("cost-list")},"*":function(){return n.runController("index")}},n}),define("order/cost-list-controller",["mk7/controller","mk7/url","mk7/utils"],function(n,e,i){var n=(Dom7,Template7,new n);return n.run=function(){var n=this;n.setPageTitle("费用列表"),n.render()},n.bindEvents=function(){console.log("bindEvents")},n}),define("order/index-controller",["mk7/controller","mk7/url","mk7/utils"],function(n,e,i){var n=(Dom7,Template7,new n);return n.run=function(){var n=this;n.setPageTitle("订单列表"),n.hideAllNonBaseMenuItem(window.$site),n.render()},n.bindEvents=function(){console.log("bindEvents")},n}),define("order/rank-controller",["mk7/controller","mk7/url","mk7/utils"],function(n,e,i){var n=(Dom7,Template7,new n);return n.run=function(){var n=this;n.setPageTitle("评价"),n.render()},n.bindEvents=function(){console.log("bindEvents")},n}); \ No newline at end of file +define("order-app",["mk7/app"],function(n){var e=Dom7,r=function(){var n=e(".ui-loading-block");0==n.length&&(e(".view-main").html('

'),window.waitingTime=1e4,window.loaderTimer&&clearTimeout(window.loaderTimer),window.loaderTimer=setTimeout(function(){var n=document.getElementById("loader-inner"),e=document.createElement("p");e.className="notice",n&&(e.innerHTML='加载速度太慢?试试重新加载',n.appendChild(e))},window.waitingTime))},i=!0;return n.name="order",n.routes={index:function(){return i=!1,r(),n.runController("index")},rank:function(){return i=!1,r(),n.runController("rank")},"cost-list":function(){return i=!1,r(),n.runController("cost-list")},repairing:function(){return i=!1,r(),n.runController("repairing")},"*":function(){return n.runController("index")}},n}),define("order/cost-list-controller",["mk7/controller","mk7/url","mk7/utils"],function(n,e,r){var n=(Dom7,Template7,new n);return n.run=function(){var n=this;n.setPageTitle("费用列表"),n.render()},n.bindEvents=function(){console.log("bindEvents")},n}),define("order/index-controller",["mk7/controller","mk7/url","mk7/utils"],function(n,e,r){var n=(Dom7,Template7,new n);return n.run=function(){var n=this;n.setPageTitle("订单列表"),n.hideAllNonBaseMenuItem(window.$site),n.render()},n.bindEvents=function(){console.log("bindEvents")},n}),define("order/rank-controller",["mk7/controller","mk7/url","mk7/utils"],function(n,e,r){var n=(Dom7,Template7,new n);return n.run=function(){var n=this;n.setPageTitle("评价"),n.render()},n.bindEvents=function(){console.log("bindEvents")},n}),define("order/repairing-controller",["mk7/controller","mk7/url","mk7/utils"],function(n,e,r){var n=(Dom7,Template7,new n);return n.run=function(){var n=this;n.setPageTitle("维修单"),n.render()},n.bindEvents=function(){console.log("bindEvents")},n}); \ No newline at end of file diff --git a/web/i/order/demo.jpg b/web/i/order/demo.jpg new file mode 100644 index 0000000..a43aed6 Binary files /dev/null and b/web/i/order/demo.jpg differ diff --git a/web/i/order/repairing_tip_image.png b/web/i/order/repairing_tip_image.png new file mode 100644 index 0000000..ba3c3ed Binary files /dev/null and b/web/i/order/repairing_tip_image.png differ diff --git a/web/src/js/order/app.js b/web/src/js/order/app.js index bc70a5c..e68b448 100644 --- a/web/src/js/order/app.js +++ b/web/src/js/order/app.js @@ -49,6 +49,11 @@ define( _autoLoading(); return app.runController('cost-list'); }, + 'repairing': function () { + fromOutside = false; + _autoLoading(); + return app.runController('repairing'); + }, '*': function(){ return app.runController('index'); } diff --git a/web/src/js/order/repairing-controller.js b/web/src/js/order/repairing-controller.js new file mode 100644 index 0000000..47ad35f --- /dev/null +++ b/web/src/js/order/repairing-controller.js @@ -0,0 +1,30 @@ +/** + * 维修中页 + */ +define( + "order/repairing-controller", + [ + 'mk7/controller', + 'mk7/url', + 'mk7/utils', + ], + + function(ctrl, url, utils) { + + var $$ = Dom7; + var t7 = Template7; + var ctrl = new ctrl(); + + ctrl.run = function () { + var me = this; + me.setPageTitle("维修单"); + me.render(); + } + ctrl.bindEvents = function () { + var me = this; + console.log("bindEvents"); + } + + return ctrl; + } +); -- libgit2 0.21.0