xg
This commit is contained in:
parent
13de4eadb7
commit
4c29a20fe3
9
App.vue
9
App.vue
@ -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();
|
||||
|
||||
22
pages.json
22
pages.json
@ -4,6 +4,12 @@
|
||||
},
|
||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://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
|
||||
}
|
||||
}
|
||||
]
|
||||
}, {
|
||||
|
||||
@ -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%;
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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 {
|
||||
|
||||
44
pagesB/threeHighsAndSixDiseases/threeHighsAndSixDiseases.vue
Normal file
44
pagesB/threeHighsAndSixDiseases/threeHighsAndSixDiseases.vue
Normal 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>
|
||||
Loading…
Reference in New Issue
Block a user