| | |
| | | <template>
|
| | | <view class="main_app">
|
| | | <view class="hone_name title">{{ userInfo.realname }},欢迎登录</view>
|
| | | <view class="hone_name title">{{ userInfo.realname }},欢迎登录~</view>
|
| | | <view class="home_con">
|
| | | <image class="bg" src="@/static/home/home_bg.jpg" mode=""></image>
|
| | | <view class="h1">阜宁文体中心</view>
|
| | |
| | | </view>
|
| | | </template>
|
| | |
|
| | | <script> |
| | | import { logoutPost } from '@/api'
|
| | | <script>
|
| | | import {
|
| | | logoutPost
|
| | | } from '@/api'
|
| | | export default {
|
| | | data() {
|
| | | return {
|
| | | userInfo: uni.getStorageSync('userInfo') || {},
|
| | | list1: [ |
| | | {
|
| | | list1: [{
|
| | | name: '新增工单',
|
| | | url: '/pages/workOrder/edit',
|
| | | img: require('@/static/home/ic_xinzenggongdan@2x.png'),
|
| | |
| | | url: item.url
|
| | | })
|
| | | },
|
| | | loginOut() { |
| | | logoutPost()
|
| | | this.$store.commit('empty')
|
| | | uni.redirectTo({
|
| | | url: '/pages/login'
|
| | | }) |
| | | loginOut() {
|
| | | logoutPost().then(res => {
|
| | | this.$store.commit('empty')
|
| | | setTimeout(() => { |
| | | uni.redirectTo({ |
| | | url: '/pages/login' |
| | | }) |
| | | }, 300)
|
| | | })
|
| | | // window.location.href= 'https://zhcg.fnwtzx.com/fn_h5'
|
| | | },
|
| | |
|