xg
This commit is contained in:
parent
13de4eadb7
commit
4c29a20fe3
9
App.vue
9
App.vue
@ -2,12 +2,19 @@
|
|||||||
import {
|
import {
|
||||||
mapMutations
|
mapMutations
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
|
import {
|
||||||
|
createMobileToken
|
||||||
|
} from '@/api/pages/login/index.js'
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {},
|
onLaunch: function() {},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(['socketOpenfalse']),
|
...mapMutations(['socketOpenfalse']),
|
||||||
},
|
},
|
||||||
onShow: function() {},
|
onShow: function() {
|
||||||
|
createMobileToken().then(res => {
|
||||||
|
uni.setStorageSync("token", res.data.token)
|
||||||
|
})
|
||||||
|
},
|
||||||
onHide: function() {
|
onHide: function() {
|
||||||
this.socketOpenfalse();
|
this.socketOpenfalse();
|
||||||
uni.closeSocket();
|
uni.closeSocket();
|
||||||
|
|||||||
22
pages.json
22
pages.json
@ -4,6 +4,12 @@
|
|||||||
},
|
},
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||||
{
|
{
|
||||||
|
"path": "pages/homepage/homepage",
|
||||||
|
"style": {
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
"path": "pages/startup/startup",
|
"path": "pages/startup/startup",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
@ -16,12 +22,6 @@
|
|||||||
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
|
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
|
||||||
"enablePullDownRefresh": true //设置参数为true
|
"enablePullDownRefresh": true //设置参数为true
|
||||||
}
|
}
|
||||||
}, {
|
|
||||||
"path": "pages/homepage/homepage",
|
|
||||||
"style": {
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"navigationStyle": "custom"
|
|
||||||
}
|
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/myinformation/myinformation",
|
"path": "pages/myinformation/myinformation",
|
||||||
"style": {
|
"style": {
|
||||||
@ -440,13 +440,21 @@
|
|||||||
"navigationBarTitleText": "我的评价",
|
"navigationBarTitleText": "我的评价",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
},{
|
}, {
|
||||||
"path": "behavior/behavior",
|
"path": "behavior/behavior",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "健康行为",
|
"navigationBarTitleText": "健康行为",
|
||||||
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
|
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
|
||||||
"enablePullDownRefresh": true //设置参数为true
|
"enablePullDownRefresh": true //设置参数为true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "threeHighsAndSixDiseases/threeHighsAndSixDiseases",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText" : "三高六病",
|
||||||
|
"enablePullDownRefresh" : false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@ -14,7 +14,16 @@
|
|||||||
|
|
||||||
.item {
|
.item {
|
||||||
display: flex;
|
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 {
|
.signmyself {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 48%;
|
width: 48%;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</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">
|
<view class="home" @tap="goonline">
|
||||||
<image src="@/static/qianyue.png" mode=""></image>
|
<image src="@/static/qianyue.png" mode=""></image>
|
||||||
<view class="name">
|
<view class="name">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
健康档案
|
健康档案
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="home" @tap="goappoint">
|
<view class="home" @tap="goappoint" v-if="Number(region)!=2">
|
||||||
<image src="@/static/serveappoint.png" mode=""></image>
|
<image src="@/static/serveappoint.png" mode=""></image>
|
||||||
<view class="name">
|
<view class="name">
|
||||||
服务预约
|
服务预约
|
||||||
@ -41,42 +41,42 @@
|
|||||||
积分兑换
|
积分兑换
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="home" @tap="myappointment">
|
<view class="home" @tap="myappointment" v-if="Number(region)!=2">
|
||||||
<image src="@/static/appointmen.png" mode=""></image>
|
<image src="@/static/appointmen.png" mode=""></image>
|
||||||
<view class="name">
|
<view class="name">
|
||||||
我的预约
|
我的预约
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="home" @tap="servicerecord">
|
<view class="home" @tap="servicerecord" v-if="Number(region)!=2">
|
||||||
<image src="@/static/SERVERECOD.png" mode=""></image>
|
<image src="@/static/SERVERECOD.png" mode=""></image>
|
||||||
<view class="name">
|
<view class="name">
|
||||||
服务记录
|
服务记录
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="home" @tap='gointegration' v-if="Number(region)==2">
|
<view class="home" @tap='gothreeHighsAndSixDiseases' 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">
|
|
||||||
<image src="@/static/zhaohujilu.png" mode=""></image>
|
<image src="@/static/zhaohujilu.png" mode=""></image>
|
||||||
<view class="name">
|
<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>
|
</view>
|
||||||
<view class="home" v-if="Number(region)==2">
|
<view class="home" v-if="Number(region)==2">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="contentbottom">
|
<view class="contentbottom" :style="Number(region)==2?'height:350rpx':''">
|
||||||
<view class="health">
|
<view class="health">
|
||||||
健康管理
|
健康管理
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<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>
|
<image src="@/static/tizheng.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="sign">
|
<view class="sign" :class="Number(region)==2?'notwo':''">
|
||||||
<image @tap="healthtest" src="@/static/healthmyself.png" mode=""></image>
|
<image @tap="healthtest" src="@/static/healthmyself.png" mode=""></image>
|
||||||
<image @tap="gorecords" src="@/static/records.png" mode=""></image>
|
<image @tap="gorecords" src="@/static/records.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
@ -207,26 +207,6 @@
|
|||||||
url: "/pagesB/login/login"
|
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() {
|
gologin() {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请先登录',
|
||||||
@ -357,16 +337,13 @@
|
|||||||
},
|
},
|
||||||
// 体征检测
|
// 体征检测
|
||||||
sign() {
|
sign() {
|
||||||
uni.navigateTo({
|
if (!this.userinfo) {
|
||||||
url: "/pagesC/Physicalexamination/Physicalexamination"
|
this.gologin();
|
||||||
})
|
} else {
|
||||||
// if (!this.userinfo) {
|
uni.navigateTo({
|
||||||
// this.gologin();
|
url: "/pagesC/Physicalexamination/Physicalexamination"
|
||||||
// } else {
|
})
|
||||||
// uni.navigateTo({
|
}
|
||||||
// url: "/pagesC/Physicalexamination/Physicalexamination"
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
// 服务预约
|
// 服务预约
|
||||||
goappoint() {
|
goappoint() {
|
||||||
@ -479,6 +456,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
gothreeHighsAndSixDiseases() {
|
||||||
|
if (!this.userinfo) {
|
||||||
|
this.gologin();
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pagesB/threeHighsAndSixDiseases/threeHighsAndSixDiseases"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -85,17 +85,17 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
|
||||||
this.info();
|
this.info();
|
||||||
this.scoretotalinfo();
|
this.scoretotalinfo();
|
||||||
},
|
},
|
||||||
onReady() { //更改导航栏文字
|
onReady() { //更改导航栏文字
|
||||||
if (uni.getStorageSync('region') == 2) {
|
if (uni.getStorageSync('region') == 2) {
|
||||||
detail(this.query.identity).then(res => {
|
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
|
this.orgNo = res.data.orgNo
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: '东营健康银行' + res.data.countyName + '分行'
|
title: '东营健康银行' + name + '分行'
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
} else {
|
} 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