diff --git a/App.vue b/App.vue index 00fa609..f67d2bc 100644 --- a/App.vue +++ b/App.vue @@ -1,35 +1,38 @@ - - - + + + \ No newline at end of file diff --git a/common/http.api.js b/common/http.api.js index 0439391..75cf369 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -50,7 +50,12 @@ let apiApp = { cartDestroy: '/api/mobile/cart/destroy', hospital: '/api/mobile/hospital/hospital', - banner: '/api/mobile/other/banner', + banner: '/api/mobile/other/banner', + // 就医服务 + serveHospital:'/api/mobile/serve-hospital/hospital', + serveHospitalDetail:'/api/mobile/serve-hospital/hospital-detail', + serveHospitalForm:'/api/mobile/serve-hospital/forms' + } // 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作 @@ -107,8 +112,11 @@ const install = (Vue, vm) => { const cartList = (params = {}) => vm.$u.get(apiApp.cartIndex, params) const cartShow = (params = {}) => vm.$u.get(apiApp.cartShow, params) const cartSave = (params = {}) => vm.$u.post(apiApp.cartSave, params) - const cartDestroy = (params = {}) => vm.$u.get(apiApp.cartDestroy, params) - + const cartDestroy = (params = {}) => vm.$u.get(apiApp.cartDestroy, params) + // 就医服务 + const serveHospital = (params = {}) => vm.$u.get(apiApp.serveHospital, params) + const serveHospitalDetail = (params = {}) => vm.$u.get(apiApp.serveHospitalDetail, params) + const serveHospitalForm = (params = {}) => vm.$u.get(apiApp.serveHospitalForm, params) // end vm.$u.api = { @@ -134,7 +142,9 @@ const install = (Vue, vm) => { // 用户商城订单 userOrders,userOrdersDetail,productOrderRefund, // 购物车 - cartList, cartSave, cartShow, cartDestroy + cartList, cartSave, cartShow, cartDestroy, + //就医服务 + serveHospital,serveHospitalDetail,serveHospitalForm }; } diff --git a/package_sub/pages/ServeDetail/ServeDetail.vue b/package_sub/pages/ServeDetail/ServeDetail.vue new file mode 100644 index 0000000..6c7fb9c --- /dev/null +++ b/package_sub/pages/ServeDetail/ServeDetail.vue @@ -0,0 +1,233 @@ + + + + + \ No newline at end of file diff --git a/package_sub/pages/ServeForm/ServeForm.vue b/package_sub/pages/ServeForm/ServeForm.vue new file mode 100644 index 0000000..6ec7034 --- /dev/null +++ b/package_sub/pages/ServeForm/ServeForm.vue @@ -0,0 +1,322 @@ + + + + + \ No newline at end of file diff --git a/package_sub/pages/ServeHospital/ServeHospital.vue b/package_sub/pages/ServeHospital/ServeHospital.vue new file mode 100644 index 0000000..12c33df --- /dev/null +++ b/package_sub/pages/ServeHospital/ServeHospital.vue @@ -0,0 +1,265 @@ + + + + + \ No newline at end of file diff --git a/package_sub/static/ServeHospital/active.png b/package_sub/static/ServeHospital/active.png new file mode 100644 index 0000000..e0b8687 Binary files /dev/null and b/package_sub/static/ServeHospital/active.png differ diff --git a/package_sub/static/ServeHospital/bkg.png b/package_sub/static/ServeHospital/bkg.png new file mode 100644 index 0000000..48f61a6 Binary files /dev/null and b/package_sub/static/ServeHospital/bkg.png differ diff --git a/pages.json b/pages.json index 8dae743..a4256e0 100644 --- a/pages.json +++ b/pages.json @@ -137,7 +137,28 @@ "style": { "navigationStyle": "custom" } - } + }, + // 就医服务 + { + "path": "pages/ServeHospital/ServeHospital", + "style": { + "navigationBarTitleText": "就医服务", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/ServeDetail/ServeDetail", + "style": { + "navigationBarTitleText": "选择科室" + } + }, + { + "path": "pages/ServeForm/ServeForm", + "style": { + "navigationBarTitleText": "提交咨询" + } + } + ] } ], diff --git a/pages/index/index.vue b/pages/index/index.vue index 79c45e0..73f3323 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -68,7 +68,7 @@ - + @@ -272,6 +272,7 @@ export default { { text: "就医服务", icon: "/static/index/jiuyifuwu.png", + to: "/package_sub/pages/ServeHospital/ServeHospital", }, { text: "居家照护",