122 lines
2.6 KiB
Vue
122 lines
2.6 KiB
Vue
<template>
|
||
<view class="app">
|
||
<view class="content">
|
||
<image src="/static/pageC/homepage.png" mode=""></image>
|
||
<view class="loginmount">
|
||
<image src="/static/pageC/TAB.png" mode=""></image>
|
||
你好,请登录
|
||
</view>
|
||
</view>
|
||
<view class="contentcenter">
|
||
<view class="home">
|
||
<image src="/static/pageC/qianyue.png" mode=""></image>
|
||
<view class="name">
|
||
家医签约
|
||
</view>
|
||
</view>
|
||
<view class="home" @tap="goHealthrecords">
|
||
<image src="/static/pageC/health.png" mode=""></image>
|
||
<view class="name">
|
||
健康档案
|
||
</view>
|
||
</view>
|
||
<view class="home" @tap="goappoint">
|
||
<image src="/static/pageC/serveappoint.png" mode=""></image>
|
||
<view class="name">
|
||
服务预约
|
||
</view>
|
||
</view>
|
||
<view class="home">
|
||
<image src="/static/pageC/exchange.png" mode=""></image>
|
||
<view class="name">
|
||
积分兑换
|
||
</view>
|
||
</view>
|
||
|
||
<view class="home">
|
||
<image src="/static/pageC/appointmen.png" mode=""></image>
|
||
<view class="name">
|
||
我的预约
|
||
</view>
|
||
</view>
|
||
<view class="home">
|
||
<image src="/static/pageC/SERVERECOD.png" mode=""></image>
|
||
<view class="name">
|
||
服务记录
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="contentbottom">
|
||
<view class="health">
|
||
健康管理
|
||
</view>
|
||
<view class="item">
|
||
<view class="signmyself">
|
||
<image src="/static/pageC/tizheng.png" mode=""></image>
|
||
</view>
|
||
<view class="sign">
|
||
<image src="/static/pageC/healthmyself.png" mode=""></image>
|
||
<image @tap="gorecords" src="/static/pageC/records.png" mode=""></image>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import {
|
||
getOpenId,
|
||
getCurrentUser
|
||
} from '@/api/pages/homepage/homepage.js'
|
||
export default {
|
||
data() {
|
||
return {
|
||
title: 'Hello'
|
||
}
|
||
},
|
||
onLoad() {
|
||
this.login()
|
||
},
|
||
methods: {
|
||
goHealthrecords() {
|
||
uni.navigateTo({
|
||
url: '/pagesC/Healthrecords/Healthrecords'
|
||
})
|
||
},
|
||
gorecords() {
|
||
uni.navigateTo({
|
||
url: '/pagesC/Screeningrecords/Screeningrecords'
|
||
})
|
||
},
|
||
goappoint() {
|
||
uni.navigateTo({
|
||
url: '/pagesC/ServiceAppointment/ServiceAppointment'
|
||
})
|
||
},
|
||
login() {
|
||
const _this = this
|
||
uni.login({
|
||
success(res) {
|
||
getOpenId(res.code).then(Res => {
|
||
if (Res.code == 200) {
|
||
_this.isWxBing(Res.msg, '1')
|
||
}
|
||
})
|
||
}
|
||
})
|
||
},
|
||
isWxBing(openid, cityCode) {
|
||
getCurrentUser(openid, cityCode).then(res => {
|
||
console.log(res);
|
||
if (!res.data) {
|
||
// 注册
|
||
}
|
||
})
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss">
|
||
@import "./homepage.scss";
|
||
</style> |