renkang
2025-01-03 ccf28d1fed1aa2e5437dbe64b5133ba1cbde6ec7
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>
@@ -25,13 +25,14 @@
</template>
<script>
   import { logoutPost } from '@/api'
   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'),
@@ -75,11 +76,14 @@
            })
         },
         loginOut() {
            logoutPost()
            logoutPost().then(res => {
            this.$store.commit('empty')
               setTimeout(() => {
            uni.redirectTo({
               url: '/pages/login'
            })
               }, 300)
            })
            // window.location.href= 'https://zhcg.fnwtzx.com/fn_h5'
         },