This commit is contained in:
2024-03-13 09:15:38 +08:00
parent 13de4eadb7
commit 4c29a20fe3
6 changed files with 111 additions and 57 deletions

View File

@ -2,12 +2,19 @@
import {
mapMutations
} from "vuex";
import {
createMobileToken
} from '@/api/pages/login/index.js'
export default {
onLaunch: function() {},
methods: {
...mapMutations(['socketOpenfalse']),
},
onShow: function() {},
onShow: function() {
createMobileToken().then(res => {
uni.setStorageSync("token", res.data.token)
})
},
onHide: function() {
this.socketOpenfalse();
uni.closeSocket();

View File

@ -4,6 +4,12 @@
},
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/homepage/homepage",
"style": {
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "pages/startup/startup",
"style": {
"navigationStyle": "custom",
@ -16,12 +22,6 @@
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
}, {
"path": "pages/homepage/homepage",
"style": {
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "pages/myinformation/myinformation",
"style": {
@ -440,13 +440,21 @@
"navigationBarTitleText": "我的评价",
"enablePullDownRefresh": false
}
},{
}, {
"path": "behavior/behavior",
"style": {
"navigationBarTitleText": "健康行为",
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
},
{
"path" : "threeHighsAndSixDiseases/threeHighsAndSixDiseases",
"style" :
{
"navigationBarTitleText" : "三高六病",
"enablePullDownRefresh" : false
}
}
]
}, {

View File

@ -14,7 +14,16 @@
.item {
display: flex;
.notwo{
display: flex !important;
justify-content: space-around !important;
width: 94% !important;
margin: 0 auto !important;
image{
width:48% !important;
height: 132rpx !important;
}
}
.signmyself {
display: inline-block;
width: 48%;

View File

@ -10,7 +10,7 @@
</text>
</view>
</view>
<view class="contentcenter" :style="Number(region)==2?'':'height:500rpx'">
<view class="contentcenter" :style="Number(region)==2?'height:450rpx':'height:500rpx'">
<view class="home" @tap="goonline">
<image src="@/static/qianyue.png" mode=""></image>
<view class="name">
@ -23,7 +23,7 @@
健康档案
</view>
</view>
<view class="home" @tap="goappoint">
<view class="home" @tap="goappoint" v-if="Number(region)!=2">
<image src="@/static/serveappoint.png" mode=""></image>
<view class="name">
服务预约
@ -41,42 +41,42 @@
积分兑换
</view>
</view>
<view class="home" @tap="myappointment">
<view class="home" @tap="myappointment" v-if="Number(region)!=2">
<image src="@/static/appointmen.png" mode=""></image>
<view class="name">
我的预约
</view>
</view>
<view class="home" @tap="servicerecord">
<view class="home" @tap="servicerecord" v-if="Number(region)!=2">
<image src="@/static/SERVERECOD.png" mode=""></image>
<view class="name">
服务记录
</view>
</view>
<view class="home" @tap='gointegration' v-if="Number(region)==2">
<image src="@/static/zhaohufangan.png" mode=""></image>
<view class="name">
一体化照护方案
</view>
</view>
<view class="home" @tap='gonurseRecord' v-if="Number(region)==2">
<view class="home" @tap='gothreeHighsAndSixDiseases' v-if="Number(region)==2">
<image src="@/static/zhaohujilu.png" mode=""></image>
<view class="name">
照护记录
三高六病
</view>
</view>
<view class="home" v-if="Number(region)==2">
<image src="@/static/zhaohujilu.png" mode=""></image>
<view class="name">
自主检测
</view>
</view>
<view class="home" v-if="Number(region)==2">
</view>
</view>
<view class="contentbottom">
<view class="contentbottom" :style="Number(region)==2?'height:350rpx':''">
<view class="health">
健康管理
</view>
<view class="item">
<view class="signmyself" @tap="sign">
<view class="signmyself" @tap="sign" v-if="Number(region)!=2">
<image src="@/static/tizheng.png" mode=""></image>
</view>
<view class="sign">
<view class="sign" :class="Number(region)==2?'notwo':''">
<image @tap="healthtest" src="@/static/healthmyself.png" mode=""></image>
<image @tap="gorecords" src="@/static/records.png" mode=""></image>
</view>
@ -207,26 +207,6 @@
url: "/pagesB/login/login"
})
},
//
gointegration() {
if (!this.userinfo) {
this.gologin();
} else {
uni.navigateTo({
url: '/pagesC/integration/integration'
})
}
},
//
gonurseRecord() {
if (!this.userinfo) {
this.gologin();
} else {
uni.navigateTo({
url: '/pagesC/nurseRecord/nurseRecord'
})
}
},
gologin() {
this.$refs.uToast.show({
title: '您未登录,请先登录',
@ -357,16 +337,13 @@
},
//
sign() {
uni.navigateTo({
url: "/pagesC/Physicalexamination/Physicalexamination"
})
// if (!this.userinfo) {
// this.gologin();
// } else {
// uni.navigateTo({
// url: "/pagesC/Physicalexamination/Physicalexamination"
// })
// }
if (!this.userinfo) {
this.gologin();
} else {
uni.navigateTo({
url: "/pagesC/Physicalexamination/Physicalexamination"
})
}
},
//
goappoint() {
@ -479,6 +456,15 @@
}
}
},
gothreeHighsAndSixDiseases() {
if (!this.userinfo) {
this.gologin();
} else {
uni.navigateTo({
url: "/pagesB/threeHighsAndSixDiseases/threeHighsAndSixDiseases"
})
}
},
}
}
</script>

View File

@ -85,17 +85,17 @@
};
},
onLoad() {
this.info();
this.scoretotalinfo();
},
onReady() { //
if (uni.getStorageSync('region') == 2) {
detail(this.query.identity).then(res => {
this.title = '东营健康银行' + res.data.countyName + '分行'
let name = res.data.countyName.split('区')[0].split('县')
this.title = '东营健康银行' + name + '分行'
this.orgNo = res.data.orgNo
uni.setNavigationBarTitle({
title: '东营健康银行' + res.data.countyName + '分行'
title: '东营健康银行' + name + '分行'
});
})
} else {

View File

@ -0,0 +1,44 @@
<template>
<view>
<view class="home" @tap='gointegration'>
<image src="@/static/zhaohufangan.png" mode=""></image>
<view class="name">
一体化照护方案
</view>
</view>
<view class="home" @tap='gonurseRecord'>
<image src="@/static/zhaohujilu.png" mode=""></image>
<view class="name">
照护记录
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
methods: {
//
gointegration() {
uni.navigateTo({
url: '/pagesC/integration/integration'
})
},
//
gonurseRecord() {
uni.navigateTo({
url: '/pagesC/nurseRecord/nurseRecord'
})
},
}
}
</script>
<style lang="scss">
</style>