59 lines
1.1 KiB
Vue
59 lines
1.1 KiB
Vue
<template>
|
|
<tpx-page>
|
|
<LoginComponent @succeedBack="handleLoginedBack"></LoginComponent>
|
|
</tpx-page>
|
|
</template>
|
|
|
|
<script>
|
|
import { USERKEY } from "@/store/actionKey"
|
|
import { getSessionLoginInfo, setSessionLoginInfo, setSessionXToken } from "@/session"
|
|
import { encrypt } from "@/common/libs/jsencrypt_utils"
|
|
import { promiseTimeout } from "@/common/untool"
|
|
|
|
// #ifdef MP
|
|
import LoginComponent from "@/components/buns-api/login/mp-login"
|
|
// #endif
|
|
|
|
// #ifndef MP
|
|
import LoginComponent from "@/components/buns-api/login/com-login"
|
|
// #endif
|
|
|
|
export default {
|
|
components: { LoginComponent },
|
|
|
|
props: {
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
onShareAppMessage() {
|
|
return {
|
|
title: '',
|
|
}
|
|
},
|
|
onLoad() {
|
|
setSessionXToken() // 登录前先清除xtoke
|
|
},
|
|
methods: {
|
|
async handleLoginedBack() {
|
|
await promiseTimeout(300)
|
|
await this.$store.dispatch(USERKEY.GETUSERINFO)
|
|
this.goto("tabBar/sending/sending")
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import '@/common/uni-nvue.scss';
|
|
page{
|
|
height: 100% !important;
|
|
}
|
|
</style>
|
|
|
|
<style scoped lang="scss">
|
|
|
|
</style>
|