xinelu-applet-ui/pages/homepage/homepage.vue

104 lines
2.2 KiB
Vue
Raw Normal View History

2023-09-19 14:58:40 +08:00
<template>
2023-09-27 13:50:42 +08:00
<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>
2023-09-27 14:05:46 +08:00
<view class="name">
2023-09-27 13:50:42 +08:00
家医签约
</view>
</view>
<view class="home">
<image src="/static/pageC/health.png" mode=""></image>
2023-09-27 14:05:46 +08:00
<view class="name">
2023-09-27 13:50:42 +08:00
健康档案
</view>
</view>
<view class="home">
<image src="/static/pageC/SERVERECOD.png" mode=""></image>
2023-09-27 14:05:46 +08:00
<view class="name">
2023-09-27 13:50:42 +08:00
服务预约
</view>
</view>
<view class="home">
<image src="/static/pageC/exchange.png" mode=""></image>
2023-09-27 14:05:46 +08:00
<view class="name">
2023-09-27 13:50:42 +08:00
积分兑换
</view>
</view>
<view class="home">
<image src="/static/pageC/appointmen.png" mode=""></image>
2023-09-27 14:05:46 +08:00
<view class="name">
2023-09-27 13:50:42 +08:00
我的预约
</view>
</view>
<view class="home">
<image src="/static/pageC/SERVERECOD.png" mode=""></image>
2023-09-27 14:05:46 +08:00
<view class="name">
2023-09-27 13:50:42 +08:00
服务记录
</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 src="/static/pageC/records.png" mode=""></image>
</view>
</view>
2023-09-19 14:58:40 +08:00
</view>
</view>
</template>
<script>
2023-09-27 13:50:42 +08:00
// import { getOpenId, getCurrentUser } from '@/api/pages/api.js'
2023-09-19 14:58:40 +08:00
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
2023-09-26 11:09:18 +08:00
this.login()
2023-09-19 14:58:40 +08:00
},
methods: {
2023-09-26 11:09:18 +08:00
login() {
const _this = this
uni.login({
success(res) {
getOpenId(res.code).then(Res => {
2023-09-27 13:50:42 +08:00
if (Res.code == 200) {
2023-09-26 11:09:18 +08:00
_this.isWxBing(Res.msg, '1')
}
})
}
})
},
isWxBing(openid, cityCode) {
getCurrentUser(openid, cityCode).then(res => {
console.log(res);
2023-09-27 13:50:42 +08:00
if (!res.data) {
2023-09-26 11:09:18 +08:00
// 注册
}
})
}
2023-09-19 14:58:40 +08:00
}
}
</script>
2023-09-27 13:50:42 +08:00
<style lang="scss">
@import "./homepage.scss";
</style>