diff --git a/api/request.js b/api/request.js index a387b4c..d288f45 100644 --- a/api/request.js +++ b/api/request.js @@ -15,10 +15,7 @@ var request = function(config) { }, success(res) { if (res.data.code == 9999) { - uni.removeStorageSync('token'); - uni.removeStorageSync('patientId'); - uni.removeStorageSync('openid'); - uni.removeStorageSync('phone'); + uni.clearStorageSync(); let pages = getCurrentPages(); let path = pages[pages.length - 1].$page.fullPath let paths = path.split('?') diff --git a/api/store/index.js b/api/store/index.js deleted file mode 100644 index 56daf90..0000000 --- a/api/store/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import request from "../request.js" - -export function insertSubscribeMessageRecord(data) { - return request({ - url: `/nurseApplet/patientInfo/insertSubscribeMessageRecord`, - method: 'POST', - data - }) -} diff --git a/pages.json b/pages.json index 5e72536..3ba8167 100644 --- a/pages.json +++ b/pages.json @@ -259,7 +259,8 @@ "path": "pages/Healthknowledge/Healthknowledge", "style": { "navigationBarTitleText": "健康常识", - "enablePullDownRefresh": false + "onReachBottomDistance": 50, //距离底部多远时触发 单位为px + "enablePullDownRefresh": true //设置参数为true } }, { "path": "pages/Healthitem/Healthitem", @@ -288,7 +289,7 @@ }, { "path": "pages/Healthrecords/Healthrecords", "style": { - "navigationBarTitleText": "健康档案", + "navigationBarTitleText": "泉医到家", "enablePullDownRefresh": false } }, { @@ -303,6 +304,13 @@ "navigationBarTitleText": "", "enablePullDownRefresh": false } + }, { + "path": "pages/Moreoptions/Moreoptions", + "style": { + "navigationBarTitleText": "护理机构", + "enablePullDownRefresh": false + } + } ], "globalStyle": { diff --git a/pages/CommodityDetails/CommodityDetails.vue b/pages/CommodityDetails/CommodityDetails.vue index 08fd97e..2915e92 100644 --- a/pages/CommodityDetails/CommodityDetails.vue +++ b/pages/CommodityDetails/CommodityDetails.vue @@ -704,7 +704,7 @@ }, //跳转到全部收货地址 upaddress() { - if (this.updata.receiver) { + if (this.loginFlag) { uni.navigateTo({ url: `/pages/modifyAddress/modifyAddress?updata=${JSON.stringify(this.updata)}` }) @@ -766,6 +766,7 @@ var that = this this.baseurl = baseurl; this.usershow = false; + this.loginFlag = false const value = uni.getStorageSync('patientId'); if (value) { AppIdentification(value).then(res => { @@ -816,6 +817,7 @@ that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress that.userid = useritem.id } + uni.$off('updata') }) }, //1.分享给朋友 diff --git a/pages/Moreoptions/Moreoptions.vue b/pages/Moreoptions/Moreoptions.vue new file mode 100644 index 0000000..98f6aa3 --- /dev/null +++ b/pages/Moreoptions/Moreoptions.vue @@ -0,0 +1,92 @@ + + + + + diff --git a/pages/Personal/Personal.vue b/pages/Personal/Personal.vue index 481b0fa..9933322 100644 --- a/pages/Personal/Personal.vue +++ b/pages/Personal/Personal.vue @@ -146,6 +146,9 @@ import { existPatientInfo } from '@/api/startup/index.js' + import { + createMobileToken + } from '@/api/login/index.js' import baseurl from '@/api/baseurl.js' export default { data() { @@ -166,7 +169,7 @@ if (value) {} else { that.appPersonallist = null that.$refs.uToast.show({ - title: '请先登录', + title: '您未登录,请先登录', type: 'error', duration: '1000', }) @@ -183,14 +186,15 @@ content: '确认要退出此账号吗', success: function(res) { if (res.confirm) { - uni.removeStorageSync('patientId'); - uni.removeStorageSync('openid'); - uni.removeStorageSync('phone'); + uni.clearStorageSync(); that.$refs.uToast.show({ title: '退出账号成功', type: 'success', duration: '1000' }) + createMobileToken().then(res => { + uni.setStorageSync("token", res.data.token) + }) if (that.timer) { clearTimeout(that.timer) } @@ -204,7 +208,7 @@ }); } else { that.$refs.uToast.show({ - title: '您未登录', + title: '您未登录,请先登录', type: 'error', duration: '1000' }) diff --git a/pages/appointmenttime/appointmenttime.vue b/pages/appointmenttime/appointmenttime.vue index 7f7344c..196b346 100644 --- a/pages/appointmenttime/appointmenttime.vue +++ b/pages/appointmenttime/appointmenttime.vue @@ -200,6 +200,7 @@ that.personInfo.phone = that.useritem.receivePhone that.personInfo.address = that.useritem.address } else {} + uni.$off('updata') }) }, onLoad(options) { @@ -303,6 +304,7 @@ this.orderlist.morningOpenStartTime = this.orderlist.morningOpenStartTime.slice(0, 5) this.orderlist.patientId = this.patientId this.orderlist.serviceAddress = this.personInfo.address + this.orderlist.disablingCondition = this.disablingCondition if (this.orderlist.disablingCondition == 'NOT_DISABLED') { this.orderlist.disablingReason = null } diff --git a/pages/confirmOrder/confirmOrder.vue b/pages/confirmOrder/confirmOrder.vue index b6e729a..c387395 100644 --- a/pages/confirmOrder/confirmOrder.vue +++ b/pages/confirmOrder/confirmOrder.vue @@ -202,6 +202,7 @@ that.updata.phone = useritem.receivePhone that.updata.receiveAddress = useritem.address } + uni.$off('updata') }) } } diff --git a/pages/diseasemanagement/diseasemanagement.vue b/pages/diseasemanagement/diseasemanagement.vue index 0442159..cc0002e 100644 --- a/pages/diseasemanagement/diseasemanagement.vue +++ b/pages/diseasemanagement/diseasemanagement.vue @@ -38,7 +38,7 @@ if (phone) { uni.navigateToMiniProgram({ appId: 'wxa690d053c34ceebd', - path: '/pages/index/index', + path: 'pages/index/index', extraData: { 'from': 'qy', 'phone': phone diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index a0b839e..e2ce9cb 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -55,10 +55,16 @@ - - - - + + + + + + + + + + @@ -137,7 +143,7 @@ if (phone) { uni.navigateToMiniProgram({ appId: 'wxa690d053c34ceebd', - path: '/pages/index/index', + path: 'pages/index/index', extraData: { 'from': 'qy', 'phone': phone @@ -302,17 +308,36 @@ }) }, 0) }, + //跳转新意象 goycjc() { uni.navigateToMiniProgram({ appId: 'wxa2335d45fb25ee50', success(res) {} }) }, + //跳转疏于 + gosuyu() { + uni.navigateToMiniProgram({ + appId: 'wxa0e41e29dd9e540b', + path: 'pages/index/index?source=ad_app_yryl-qydjtzwx', + success(res) {} + }) + }, + //跳转就医 + goseekmedicaladvice() { + uni.navigateToMiniProgram({ + appId: 'wx4f1d77226064cfc1', + path: 'pages/index/index', + success(res) {} + }) + }, + //跳转 gopzyh() { uni.navigateTo({ url: `/pages/nursestation/nursestation?nurseStationId=${13}` }) }, + //跳转贴心智养 gonight() { uni.navigateTo({ url: '/pages/night/night' @@ -496,24 +521,42 @@ flex-wrap: wrap; background-color: #fff; width: 100%; - padding: 30rpx 3%; + padding: 30rpx 2%; margin-bottom: 20rpx; + .topimgs { + display: flex; + justify-content: space-around; + width: 100%; + margin-bottom: 30rpx; + + image { + width: 30%; + height: 170rpx; + } + } .shopping { - margin-top: 15rpx; + margin-top: 5rpx; width: 98%; height: 170rpx; } - image { - display: block; + .rightimg { + display: inline-block; width: 48%; - height: 165rpx; + + image { + display: block; + margin-bottom: 10rpx; + width: 100%; + height: 165rpx; + } } - image:nth-child(1) { - margin-bottom: 14rpx; + .night { + width: 48%; + height: 340rpx; } } diff --git a/pages/information/information.vue b/pages/information/information.vue index df3320a..6417872 100644 --- a/pages/information/information.vue +++ b/pages/information/information.vue @@ -113,6 +113,9 @@ diff --git a/pages/m-city/m-city.vue b/pages/m-city/m-city.vue index 6fd71fd..6929d5f 100644 --- a/pages/m-city/m-city.vue +++ b/pages/m-city/m-city.vue @@ -82,9 +82,7 @@ }; }, onShow() {}, - onLoad() { - - }, + onLoad() {}, onUnload() {}, methods: { goemit() { diff --git a/pages/modify/modify.vue b/pages/modify/modify.vue index 2b9cfcb..48f3c0c 100644 --- a/pages/modify/modify.vue +++ b/pages/modify/modify.vue @@ -424,6 +424,7 @@ // } uni.$on('disease', function(data) { that.patientDiseaseInfoList = JSON.parse(data.disease) + uni.$off('disease') }) }, } diff --git a/pages/modifyAddress/modifyAddress.vue b/pages/modifyAddress/modifyAddress.vue index c9e89dd..2488fd6 100644 --- a/pages/modifyAddress/modifyAddress.vue +++ b/pages/modifyAddress/modifyAddress.vue @@ -167,6 +167,7 @@ // 三级地址联动回调 getpickerParentValue(e) { e = e.filter(ele => ele.localName != '暂不选择') + e = e.filter(ele => ele.localName != '暂无需选择') this.addresslength = e this.infolist.address = '' this.infolist.areaCode = '' diff --git a/pages/site/site.vue b/pages/site/site.vue index a3d7aac..5f73450 100644 --- a/pages/site/site.vue +++ b/pages/site/site.vue @@ -12,18 +12,12 @@ {{item.classifyName}} - + 更多 - - - - 收起 - - @@ -113,20 +107,23 @@ }) } }, - lengthlist(item) { - uni.showLoading({ - title: '', - duration: 500 - }); - setTimeout((e) => { - this.lengthlistshow = !this.lengthlistshow - if (item) { - this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength - } else { - this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength.slice(0, 7) - } - uni.hideLoading(); - }, 500) + lengthlist() { + uni.navigateTo({ + url: "/pages/Moreoptions/Moreoptions" + }) + // uni.showLoading({ + // title: '', + // duration: 500 + // }); + // setTimeout((e) => { + // this.lengthlistshow = !this.lengthlistshow + // if (item) { + // this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength + // } else { + // this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength.slice(0, 7) + // } + // uni.hideLoading(); + // }, 500) }, //点击护理项目分类 tapitemclass(item) { @@ -243,10 +240,23 @@ }, }, onShow() { + var that = this + uni.$on('moreoptionitem', function(data) { + if (data.item) { + that.tapitemclass(JSON.parse(data.item)) + } + uni.$off('moreoptionitem') + }) + }, + onHide() { this.nurseClassId = '' this.itemClassId = '' this.conNewcurrent = 0 + this.requestinfo(); + }, + onLoad() { var that = this + this.getNurseClassifyinfo(); const value = uni.getStorageSync('patientId'); if (value) { getPatientInfo(value).then(res => { @@ -289,9 +299,6 @@ // }); } }, - onLoad() { - this.getNurseClassifyinfo(); - }, //1.分享给朋友 onShareAppMessage(res) { let pages = getCurrentPages(); diff --git a/static/96558.png b/static/96558.png index b9a14db..2ea0405 100644 Binary files a/static/96558.png and b/static/96558.png differ diff --git a/static/jypz.png b/static/jypz.png new file mode 100644 index 0000000..cde60a3 Binary files /dev/null and b/static/jypz.png differ diff --git a/static/pzyh.png b/static/pzyh.png deleted file mode 100644 index 92da947..0000000 Binary files a/static/pzyh.png and /dev/null differ diff --git a/static/qyzq.png b/static/qyzq.png new file mode 100644 index 0000000..cfa5356 Binary files /dev/null and b/static/qyzq.png differ diff --git a/static/ynph.png b/static/ynph.png new file mode 100644 index 0000000..460d4c0 Binary files /dev/null and b/static/ynph.png differ