2023-03-28 10:02:47 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="app">
|
|
|
|
|
<image src="../../static/logo.png" mode=""></image>
|
|
|
|
|
<view class="title">
|
2023-04-04 17:14:06 +08:00
|
|
|
泉医助手
|
2023-03-28 10:02:47 +08:00
|
|
|
</view>
|
|
|
|
|
<u-toast ref="uToast" />
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-04-03 14:55:17 +08:00
|
|
|
import {
|
|
|
|
|
createMobileToken
|
|
|
|
|
} from '@/api/login/index.js'
|
2023-03-28 10:02:47 +08:00
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {};
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.info()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
info() {
|
2023-04-03 14:55:17 +08:00
|
|
|
var that = this
|
|
|
|
|
createMobileToken().then(res => {
|
|
|
|
|
uni.setStorageSync("token", res.data.token)
|
2023-04-07 16:02:37 +08:00
|
|
|
setTimeout(() => {
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: '/pages/homepage/homepage',
|
|
|
|
|
})
|
|
|
|
|
}, 1000);
|
2023-04-03 14:55:17 +08:00
|
|
|
})
|
2023-03-28 10:02:47 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
.app {
|
|
|
|
|
height: 100vh;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
image {
|
2023-04-13 10:05:41 +08:00
|
|
|
width: 380rpx;
|
2023-04-11 17:12:18 +08:00
|
|
|
height: 380rpx;
|
2023-03-28 10:02:47 +08:00
|
|
|
position: absolute;
|
|
|
|
|
top: 28%;
|
2023-04-11 17:12:18 +08:00
|
|
|
margin-left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
2023-03-28 10:02:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
width: 80%;
|
|
|
|
|
height: 48rpx;
|
|
|
|
|
font-size: 49rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-family: DengXian;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #000000;
|
|
|
|
|
position: absolute;
|
2023-04-12 14:25:04 +08:00
|
|
|
top: 55%;
|
2023-03-28 10:02:47 +08:00
|
|
|
left: 10%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|