Commit aa32aa7cb5f52798055941fa2dc5251aa8cb3281
1 parent
cbbdc13bb0
Exists in
master
and in
2 other branches
增加服务类目页面
Showing 10 changed files with 220 additions and 145 deletions
- littleApp_child/app.json
- littleApp_child/packageA/pages/serviceNotice/serviceNotice.js
- littleApp_child/packageA/pages/serviceNotice/serviceNotice.json
- littleApp_child/packageA/pages/serviceNotice/serviceNotice.wxml
- littleApp_child/pages/home/home.js
- littleApp_child/pages/home/home.wxml
- littleApp_child/project.config.json
- littleApp_child/project.private.config.json
- littleApp_child/utils/network_util.js
- littleApp_child/utils/sdk/src/connection.js
littleApp_child/app.json
View file @
aa32aa7
| 1 | 1 | { |
| 2 | - "pages": [ | |
| 3 | - "pages/home/home", | |
| 4 | - "pages/quickArchives/quickArchives", | |
| 5 | - "pages/illnessArchives/illnessArchives", | |
| 6 | - "pages/checkupAskInput/checkupAskInput", | |
| 7 | - "pages/Setting/Setting", | |
| 8 | - "pages/PersonalInfo/PersonalInfo", | |
| 9 | - "pages/checkTabList/checkTabList", | |
| 10 | - "pages/feedback/feedback", | |
| 11 | - "pages/mySaved/mySaved", | |
| 12 | - "pages/CheckReport/CheckReport", | |
| 13 | - "pages/articleLists/articleLists", | |
| 14 | - "pages/SearchPage/SearchPage", | |
| 15 | - "pages/login/login", | |
| 16 | - "pages/inspectionReport/inspectionReport", | |
| 17 | - "pages/doctor_detail/doctor_detail", | |
| 18 | - "pages/doctorList/doctorList", | |
| 19 | - "pages/hospital_detail/hospital_detail", | |
| 20 | - "pages/doctor/doctor", | |
| 21 | - "pages/hospitalList/hospitalList", | |
| 22 | - "pages/childcare_knowledge_detail/childcare_knowledge_detail", | |
| 23 | - "pages/system_notifacations/system_notifacations", | |
| 24 | - "pages/risk_guide/risk_guide", | |
| 25 | - "pages/childcare_knowledge/childcare_knowledge", | |
| 26 | - "pages/CompleteTouristInfo/CompleteTouristInfo", | |
| 27 | - "pages/vipService/vipService", | |
| 28 | - "pages/order_payment/order_payment", | |
| 29 | - "pages/Register/Register", | |
| 30 | - "pages/Guide/guide", | |
| 31 | - "pages/checkupInput/checkupInput", | |
| 32 | - "pages/inspect/inspectList", | |
| 33 | - "pages/diet/measuret", | |
| 34 | - "pages/inforBind/inforBind", | |
| 35 | - "pages/QRCodePage/QRCodePage", | |
| 36 | - "pages/DiseaseGuide/DiseaseGuide", | |
| 37 | - "pages/quickMeasurement/quickMeasurement", | |
| 38 | - "pages/doctorLists/doctorLists", | |
| 39 | - "pages/payFail/payFail", | |
| 40 | - "pages/paySuccess/paySuccess", | |
| 41 | - "pages/consulting/consulting", | |
| 42 | - "pages/consultationRecord/consultationRecord", | |
| 43 | - "pages/chatHis/chatHis", | |
| 44 | - "pages/eyeReoort/eyeReoort", | |
| 45 | - "pages/weightReport/weightReport", | |
| 46 | - "pages/weightReportList/weightReportList", | |
| 47 | - "pages/chatroom/chatroom" | |
| 48 | - ], | |
| 49 | - "subPackages": [ | |
| 50 | - { | |
| 51 | - "root": "packageA", | |
| 52 | - "pages": [ | |
| 53 | - "pages/graph/graph", | |
| 54 | - "pages/editAddress/editAddress", | |
| 55 | - "pages/articleList/articleList", | |
| 56 | - "pages/article/article", | |
| 57 | - "pages/preDocumented/preDocumented" | |
| 58 | - ] | |
| 2 | + "pages": [ | |
| 3 | + "pages/home/home", | |
| 4 | + "pages/quickArchives/quickArchives", | |
| 5 | + "pages/illnessArchives/illnessArchives", | |
| 6 | + "pages/checkupAskInput/checkupAskInput", | |
| 7 | + "pages/Setting/Setting", | |
| 8 | + "pages/PersonalInfo/PersonalInfo", | |
| 9 | + "pages/checkTabList/checkTabList", | |
| 10 | + "pages/feedback/feedback", | |
| 11 | + "pages/mySaved/mySaved", | |
| 12 | + "pages/CheckReport/CheckReport", | |
| 13 | + "pages/articleLists/articleLists", | |
| 14 | + "pages/SearchPage/SearchPage", | |
| 15 | + "pages/login/login", | |
| 16 | + "pages/inspectionReport/inspectionReport", | |
| 17 | + "pages/doctor_detail/doctor_detail", | |
| 18 | + "pages/doctorList/doctorList", | |
| 19 | + "pages/hospital_detail/hospital_detail", | |
| 20 | + "pages/doctor/doctor", | |
| 21 | + "pages/hospitalList/hospitalList", | |
| 22 | + "pages/childcare_knowledge_detail/childcare_knowledge_detail", | |
| 23 | + "pages/system_notifacations/system_notifacations", | |
| 24 | + "pages/risk_guide/risk_guide", | |
| 25 | + "pages/childcare_knowledge/childcare_knowledge", | |
| 26 | + "pages/CompleteTouristInfo/CompleteTouristInfo", | |
| 27 | + "pages/vipService/vipService", | |
| 28 | + "pages/order_payment/order_payment", | |
| 29 | + "pages/Register/Register", | |
| 30 | + "pages/Guide/guide", | |
| 31 | + "pages/checkupInput/checkupInput", | |
| 32 | + "pages/inspect/inspectList", | |
| 33 | + "pages/diet/measuret", | |
| 34 | + "pages/inforBind/inforBind", | |
| 35 | + "pages/QRCodePage/QRCodePage", | |
| 36 | + "pages/DiseaseGuide/DiseaseGuide", | |
| 37 | + "pages/quickMeasurement/quickMeasurement", | |
| 38 | + "pages/doctorLists/doctorLists", | |
| 39 | + "pages/payFail/payFail", | |
| 40 | + "pages/paySuccess/paySuccess", | |
| 41 | + "pages/consulting/consulting", | |
| 42 | + "pages/consultationRecord/consultationRecord", | |
| 43 | + "pages/chatHis/chatHis", | |
| 44 | + "pages/eyeReoort/eyeReoort", | |
| 45 | + "pages/weightReport/weightReport", | |
| 46 | + "pages/weightReportList/weightReportList", | |
| 47 | + "pages/chatroom/chatroom" | |
| 48 | + ], | |
| 49 | + "subPackages": [ | |
| 50 | + { | |
| 51 | + "root": "packageA", | |
| 52 | + "pages": [ | |
| 53 | + "pages/graph/graph", | |
| 54 | + "pages/editAddress/editAddress", | |
| 55 | + "pages/articleList/articleList", | |
| 56 | + "pages/article/article", | |
| 57 | + "pages/preDocumented/preDocumented", | |
| 58 | + "pages/serviceNotice/serviceNotice" | |
| 59 | + ] | |
| 60 | + } | |
| 61 | + ], | |
| 62 | + "window": { | |
| 63 | + "backgroundTextStyle": "light", | |
| 64 | + "navigationBarBackgroundColor": "#fff", | |
| 65 | + "navigationBarTitleText": "孕婴助手", | |
| 66 | + "navigationBarTextStyle": "black" | |
| 67 | + }, | |
| 68 | + "sitemapLocation": "sitemap.json", | |
| 69 | + "useExtendedLib": { | |
| 70 | + "weui": true | |
| 59 | 71 | } |
| 60 | - ], | |
| 61 | - "window": { | |
| 62 | - "backgroundTextStyle": "light", | |
| 63 | - "navigationBarBackgroundColor": "#fff", | |
| 64 | - "navigationBarTitleText": "孕婴助手", | |
| 65 | - "navigationBarTextStyle": "black" | |
| 66 | - }, | |
| 67 | - "sitemapLocation": "sitemap.json", | |
| 68 | - "useExtendedLib":{"weui":true} | |
| 69 | 72 | } |
littleApp_child/packageA/pages/serviceNotice/serviceNotice.js
View file @
aa32aa7
| 1 | +const app = getApp() | |
| 2 | +Page({ | |
| 3 | + | |
| 4 | + /** | |
| 5 | + * 页面的初始数据 | |
| 6 | + */ | |
| 7 | + data: { | |
| 8 | + hospitalName: '' //当前医院名称 | |
| 9 | + }, | |
| 10 | + | |
| 11 | + /** | |
| 12 | + * 生命周期函数--监听页面加载 | |
| 13 | + */ | |
| 14 | + onLoad(options) { | |
| 15 | + this.getCurrentHospitalName(options) | |
| 16 | + }, | |
| 17 | + /** | |
| 18 | + * 获取医院名称 | |
| 19 | + */ | |
| 20 | + getCurrentHospitalName(options) { | |
| 21 | + if (options && options.hospitalName) { | |
| 22 | + this.setData({ | |
| 23 | + hospitalName: options.hospitalName | |
| 24 | + }) | |
| 25 | + } else { | |
| 26 | + this.setData({ | |
| 27 | + hospitalName: app.globalData.userInfo.checkhospital || '' | |
| 28 | + }) | |
| 29 | + } | |
| 30 | + } | |
| 31 | +}) |
littleApp_child/packageA/pages/serviceNotice/serviceNotice.json
View file @
aa32aa7
littleApp_child/packageA/pages/serviceNotice/serviceNotice.wxml
View file @
aa32aa7
| 1 | +<text> | |
| 2 | + 【{{hospitalName}}】您好,在后续儿童健康管理过程中,我院为您提供专属您的精准医疗服务,包括: | |
| 3 | + ①每周二、周五依据婴幼儿个体数据,通过微信公众号向您提供各周/月龄的儿童健康指导; | |
| 4 | + ②每周二、周五微信公众号向您提供,精口确到每周及患病诊断的高风险管控指导; | |
| 5 | + ③依据国家免疫规划程序及二类疫苗适宜接种月龄进行疫苗接种相关知识提醒; | |
| 6 | + ④微信公众号和微信小程序服务的同时,我们将持续通过短信辅助进行提醒。 | |
| 7 | + 我们依据婴幼儿个体数据,每周均会向您推送公众号消息指导,并在小程序上呈现对应的文章指导。如果您没有享受到对应的服务或对服务有任何疑问、意见与建议,您可以通过拨打客服电话:18932538893来联系我们处理。 | |
| 8 | +</text> |
littleApp_child/pages/home/home.js
View file @
aa32aa7
| ... | ... | @@ -863,6 +863,10 @@ |
| 863 | 863 | goArticle() { |
| 864 | 864 | wx.navigateTo({url: '/packageA/pages/articleList/articleList'}) |
| 865 | 865 | }, |
| 866 | + //跳转服务名目通知 | |
| 867 | + goServiceNotice(){ | |
| 868 | + wx.navigateTo({url: '/packageA/pages/serviceNotice/serviceNotice'}) | |
| 869 | + }, | |
| 866 | 870 | //专家咨询 |
| 867 | 871 | consultation(){ |
| 868 | 872 | if(this.data.riskGuide){ |
littleApp_child/pages/home/home.wxml
View file @
aa32aa7
| ... | ... | @@ -117,6 +117,10 @@ |
| 117 | 117 | <image src="../../source/jianchajilu.png" style="{{item_small}}" class="foundation_item_small_image"></image> |
| 118 | 118 | <view class="foundation_item_small_text">中医指导文章</view> |
| 119 | 119 | </navigator> |
| 120 | + <navigator class="foundation_item_small" bind:tap="goServiceNotice"> | |
| 121 | + <image src="../../source/jianchajilu.png" style="{{item_small}}" class="foundation_item_small_image"></image> | |
| 122 | + <view class="foundation_item_small_text">服务名目通知</view> | |
| 123 | + </navigator> | |
| 120 | 124 | </view> |
| 121 | 125 | |
| 122 | 126 | <!--文章列表--> |
littleApp_child/project.config.json
View file @
aa32aa7
| 1 | 1 | { |
| 2 | - "description": "项目配置文件。", | |
| 3 | - "packOptions": { | |
| 4 | - "ignore": [] | |
| 5 | - }, | |
| 6 | - "setting": { | |
| 7 | - "urlCheck": false, | |
| 8 | - "es6": true, | |
| 9 | - "enhance": true, | |
| 10 | - "postcss": true, | |
| 11 | - "preloadBackgroundData": false, | |
| 12 | - "minified": true, | |
| 13 | - "newFeature": false, | |
| 14 | - "coverView": true, | |
| 15 | - "nodeModules": false, | |
| 16 | - "autoAudits": false, | |
| 17 | - "showShadowRootInWxmlPanel": true, | |
| 18 | - "scopeDataCheck": false, | |
| 19 | - "uglifyFileName": false, | |
| 20 | - "checkInvalidKey": true, | |
| 21 | - "checkSiteMap": true, | |
| 22 | - "uploadWithSourceMap": true, | |
| 23 | - "compileHotReLoad": false, | |
| 24 | - "lazyloadPlaceholderEnable": false, | |
| 25 | - "useMultiFrameRuntime": true, | |
| 26 | - "useApiHook": true, | |
| 27 | - "useApiHostProcess": true, | |
| 28 | - "babelSetting": { | |
| 29 | - "ignore": [], | |
| 30 | - "disablePlugins": [], | |
| 31 | - "outputPath": "" | |
| 2 | + "description": "项目配置文件。", | |
| 3 | + "packOptions": { | |
| 4 | + "ignore": [], | |
| 5 | + "include": [] | |
| 32 | 6 | }, |
| 33 | - "useIsolateContext": true, | |
| 34 | - "userConfirmedBundleSwitch": false, | |
| 35 | - "packNpmManually": false, | |
| 36 | - "packNpmRelationList": [], | |
| 37 | - "minifyWXSS": true, | |
| 38 | - "disableUseStrict": false, | |
| 39 | - "minifyWXML": true, | |
| 40 | - "showES6CompileOption": false, | |
| 41 | - "useCompilerPlugins": false, | |
| 42 | - "ignoreUploadUnusedFiles": true | |
| 43 | - }, | |
| 44 | - "compileType": "miniprogram", | |
| 45 | - "libVersion": "2.15.0", | |
| 46 | - "appid": "wx60e0071c56800f71", | |
| 47 | - "projectname": "littleApp_child", | |
| 48 | - "isGameTourist": false, | |
| 49 | - "simulatorType": "wechat", | |
| 50 | - "simulatorPluginLibVersion": {}, | |
| 51 | - "condition": { | |
| 52 | - "plugin": { | |
| 53 | - "list": [] | |
| 54 | - }, | |
| 55 | - "game": { | |
| 56 | - "list": [] | |
| 57 | - }, | |
| 58 | - "gamePlugin": { | |
| 59 | - "list": [] | |
| 60 | - }, | |
| 61 | - "miniprogram": { | |
| 62 | - "list": [ | |
| 63 | - { | |
| 64 | - "name": "ss", | |
| 65 | - "pathName": "pages/weightReportList/weightReportList", | |
| 66 | - "query": "recordTime=2019-07-10&weight=10", | |
| 67 | - "scene": null | |
| 7 | + "setting": { | |
| 8 | + "urlCheck": false, | |
| 9 | + "es6": true, | |
| 10 | + "enhance": true, | |
| 11 | + "postcss": true, | |
| 12 | + "preloadBackgroundData": false, | |
| 13 | + "minified": true, | |
| 14 | + "newFeature": false, | |
| 15 | + "coverView": true, | |
| 16 | + "nodeModules": false, | |
| 17 | + "autoAudits": false, | |
| 18 | + "showShadowRootInWxmlPanel": true, | |
| 19 | + "scopeDataCheck": false, | |
| 20 | + "uglifyFileName": false, | |
| 21 | + "checkInvalidKey": true, | |
| 22 | + "checkSiteMap": true, | |
| 23 | + "uploadWithSourceMap": true, | |
| 24 | + "compileHotReLoad": false, | |
| 25 | + "lazyloadPlaceholderEnable": false, | |
| 26 | + "useMultiFrameRuntime": true, | |
| 27 | + "useApiHook": true, | |
| 28 | + "useApiHostProcess": true, | |
| 29 | + "babelSetting": { | |
| 30 | + "ignore": [], | |
| 31 | + "disablePlugins": [], | |
| 32 | + "outputPath": "" | |
| 68 | 33 | }, |
| 69 | - { | |
| 70 | - "name": "咨询", | |
| 71 | - "pathName": "pages/consulting/consulting", | |
| 72 | - "query": "username= JSON.stringify({myName:\"qing\",your:\"qing003\",serviceId:\"21\",memberId:\"21\" })", | |
| 73 | - "scene": null | |
| 34 | + "useIsolateContext": true, | |
| 35 | + "userConfirmedBundleSwitch": false, | |
| 36 | + "packNpmManually": false, | |
| 37 | + "packNpmRelationList": [], | |
| 38 | + "minifyWXSS": true, | |
| 39 | + "disableUseStrict": false, | |
| 40 | + "minifyWXML": true, | |
| 41 | + "showES6CompileOption": false, | |
| 42 | + "useCompilerPlugins": false, | |
| 43 | + "ignoreUploadUnusedFiles": true, | |
| 44 | + "condition": false | |
| 45 | + }, | |
| 46 | + "compileType": "miniprogram", | |
| 47 | + "libVersion": "2.15.0", | |
| 48 | + "appid": "wx60e0071c56800f71", | |
| 49 | + "projectname": "littleApp_child", | |
| 50 | + "simulatorType": "wechat", | |
| 51 | + "simulatorPluginLibVersion": {}, | |
| 52 | + "condition": { | |
| 53 | + "miniprogram": { | |
| 54 | + "list": [ | |
| 55 | + { | |
| 56 | + "name": "ss", | |
| 57 | + "pathName": "pages/weightReportList/weightReportList", | |
| 58 | + "query": "recordTime=2019-07-10&weight=10", | |
| 59 | + "scene": null | |
| 60 | + }, | |
| 61 | + { | |
| 62 | + "name": "咨询", | |
| 63 | + "pathName": "pages/consulting/consulting", | |
| 64 | + "query": "username= JSON.stringify({myName:\"qing\",your:\"qing003\",serviceId:\"21\",memberId:\"21\" })", | |
| 65 | + "scene": null | |
| 66 | + } | |
| 67 | + ] | |
| 74 | 68 | } |
| 75 | - ] | |
| 69 | + }, | |
| 70 | + "editorSetting": { | |
| 71 | + "tabIndent": "insertSpaces", | |
| 72 | + "tabSize": 4 | |
| 76 | 73 | } |
| 77 | - } | |
| 78 | 74 | } |
littleApp_child/project.private.config.json
View file @
aa32aa7
| 1 | +{ | |
| 2 | + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", | |
| 3 | + "projectname": "littleApp_child", | |
| 4 | + "setting": { | |
| 5 | + "compileHotReLoad": true | |
| 6 | + }, | |
| 7 | + "condition": { | |
| 8 | + "miniprogram": { | |
| 9 | + "list": [ | |
| 10 | + { | |
| 11 | + "name": "ss", | |
| 12 | + "pathName": "pages/weightReportList/weightReportList", | |
| 13 | + "query": "recordTime=2019-07-10&weight=10", | |
| 14 | + "scene": null | |
| 15 | + }, | |
| 16 | + { | |
| 17 | + "name": "咨询", | |
| 18 | + "pathName": "packageA/pages/serviceNotice/serviceNotice", | |
| 19 | + "query": "", | |
| 20 | + "launchMode": "default", | |
| 21 | + "scene": null | |
| 22 | + } | |
| 23 | + ] | |
| 24 | + } | |
| 25 | + } | |
| 26 | +} |
littleApp_child/utils/network_util.js
View file @
aa32aa7
littleApp_child/utils/sdk/src/connection.js
View file @
aa32aa7
| ... | ... | @@ -798,11 +798,6 @@ |
| 798 | 798 | var error = function (res, xhr, msg) { |
| 799 | 799 | console.log('error', res, xhr, msg) |
| 800 | 800 | conn.clear(); |
| 801 | - wx.showModal({ | |
| 802 | - title: '用户名或密码错误!', | |
| 803 | - showCancel: false, | |
| 804 | - confirmText: 'OK' | |
| 805 | - }); | |
| 806 | 801 | if (res.error && res.error_description) { |
| 807 | 802 | conn.onError({ |
| 808 | 803 | type: _code.WEBIM_CONNCTION_OPEN_USERGRID_ERROR, |