ufutx_love_mp/src/pages/tabBar/welcome.wpy
2024-10-09 15:47:20 +08:00

63 lines
1.2 KiB
Plaintext

<style lang="less">
page {
background-color: #F8F8F8 !important;
}
</style>
<template>
<view></view>
</template>
<!--x-->
<script>
import wepy from '@wepy/core'
import https from '../../mixins/https'
import base from '../../mixins/base'
// import {wx_login} from '../../utils/util'
// import { IM } from '../../utils/im'
wepy.page({
config: {},
mixins: [https, base],
data: {},
watch: {},
methods: {
// appLogin() {
// let vm = this
// let app = vm.$app.$options
// wx_login().then((e) => {
// wx.hideLoading()
// let {accid, token} = e.data.im_user
// app.globalData.nim = IM(accid, token)
// setTimeout(() => {
// wx.switchTab({url: `/pages/tabBar/home`})
// }, 100)
// }).catch(() => {
// })
// }
},
onLoad() {
// let vm = this
// vm.appLogin()
},
onShow() {
setTimeout(() => {
if (wx.getStorageSync('logoutCode')) {
wx.redirectTo({url: '/pages/users/logoutDefault'})
return
}
wx.switchTab({url: `/pages/tabBar/home`})
}, 100)
},
created() {
}
})
</script>
<config>
{
navigationBarTitleText: '加载中...',
navigationBarBackgroundColor: '#f8f8f8',
enablePullDownRefresh: true,
}
</config>