nurseWeChatAppletUI/pages/diseasemanagement/diseasemanagement.vue

121 lines
2.3 KiB
Vue
Raw Normal View History

<template>
<view class="app">
2023-03-16 17:02:23 +08:00
<u-tabs :list="tabList" :current="tabcurrent" @change="change"></u-tabs>
<view class="items">
2023-02-24 15:45:25 +08:00
<view class="item" @tap='godiseasemanagement'>
<image src="../../static/zbglzbgl.png" mode=""></image>
<view class="title">
专病管理云社区
</view>
</view>
2023-02-24 16:08:06 +08:00
<view class="item" @tap='gogeriatricdisease'>
2023-02-24 15:45:25 +08:00
<image src="../../static/lnb.png" mode=""></image>
<view class="title">
国家老年病中心
</view>
</view>
2023-03-16 09:14:57 +08:00
</view>
2023-03-16 17:02:23 +08:00
<u-toast ref="uToast" />
</view>
</template>
<script>
export default {
data() {
return {
2023-02-24 15:45:25 +08:00
tabcurrent: 0,
tabList: [{
name: '专病管理'
}],
};
2022-12-28 12:08:50 +08:00
},
2023-02-24 15:45:25 +08:00
onShow() {},
onLoad() {},
methods: {
//跳转专病管理小程序
godiseasemanagement() {
2023-03-02 11:22:01 +08:00
const phone = uni.getStorageSync('phone');
if (phone) {
uni.navigateToMiniProgram({
appId: 'wxa690d053c34ceebd',
path: '/pages/index/index',
extraData: {
'from': 'qy',
'phone': phone
},
success(res) {}
})
2023-03-16 17:02:23 +08:00
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
2023-03-02 11:22:01 +08:00
}
2023-02-24 15:45:25 +08:00
},
2023-02-24 16:08:06 +08:00
//老年病中心
gogeriatricdisease() {
uni.navigateTo({
url: '/pages/geriatricdisease/geriatricdisease'
})
},
2023-02-24 15:45:25 +08:00
},
2022-12-28 12:08:50 +08:00
//1.分享给朋友
onShareAppMessage(res) {
2023-01-03 09:02:23 +08:00
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
2022-12-28 12:08:50 +08:00
return {
title: '泉医到家',
2023-01-03 09:02:23 +08:00
path: url,
2022-12-28 12:08:50 +08:00
}
},
//2.分享到朋友圈
onShareTimeline(res) {
2023-01-03 09:02:23 +08:00
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
2022-12-28 12:08:50 +08:00
return {
title: '泉医到家',
2023-01-03 09:02:23 +08:00
path: url,
2022-12-28 12:08:50 +08:00
}
},
}
</script>
<style lang="scss">
.app {
2023-02-24 15:45:25 +08:00
padding: 0;
2023-02-24 15:45:25 +08:00
.items {
background-color: #fff;
width: 96%;
margin: 20rpx auto;
padding: 60rpx 0;
border-radius: 5rpx;
2023-02-24 15:45:25 +08:00
.item {
width: 50%;
display: inline-block;
image {
2023-02-24 15:45:25 +08:00
width: 150rpx;
height: 150rpx;
display: block;
margin: 0 auto;
}
.title {
display: block;
margin: 20rpx auto;
width: 180rpx;
text-align: center;
font-size: 40rpx;
line-height: 50rpx;
2023-02-24 16:13:52 +08:00
font-weight: 600;
}
}
}
}
</style>