MrShi
2025-01-02 77d8f6ccb72cb64c29e77c39fcc8298781d008bb
h5/pages/index.vue
@@ -1,6 +1,6 @@
<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>
@@ -24,14 +24,15 @@
   </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'),
@@ -74,12 +75,15 @@
               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'
         },