nurseWeChatAppletUI/pages/startup/startup.vue

85 lines
1.5 KiB
Vue
Raw Normal View History

<template>
<view class="app">
<image src="../../static/logo.png" mode=""></image>
<view class="title">
泉医到家
</view>
</view>
</template>
<script>
import {
2023-02-27 11:28:17 +08:00
createMobileToken
} from '@/api/login/index.js'
export default {
data() {
2023-02-13 16:07:06 +08:00
return {};
},
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
}
},
2023-03-02 11:22:01 +08:00
onLoad(query) {
// scene 需要使用 decodeURIComponent 才能获取到生成二维码时传入的 scene
const scene = decodeURIComponent(query.scene)
if (scene >= 0) {
uni.setStorageSync("invitationPatientId", scene)
}
},
onShow() {
2023-02-27 11:28:17 +08:00
var that = this
2023-03-17 17:17:34 +08:00
// createMobileToken().then(res => {
// uni.setStorageSync("token", res.data.token)
// })
2022-11-25 11:13:41 +08:00
setTimeout(() => {
uni.reLaunch({
url: '/pages/homepage/homepage'
});
}, 2000);
},
2022-11-25 11:13:41 +08:00
methods: {},
}
</script>
<style lang="scss">
.app {
height: 100vh;
2023-02-13 16:07:06 +08:00
background-color: #fff;
}
image {
width: 50%;
2023-02-17 09:36:17 +08:00
height: 400rpx;
position: absolute;
left: 25%;
top: 28%;
}
.title {
width: 80%;
height: 48rpx;
font-size: 49rpx;
text-align: center;
font-family: DengXian;
font-weight: bold;
color: #000000;
position: absolute;
top: 50%;
left: 10%;
}
</style>