ss
doum
2025-09-19 61247957fe4d94591e37d75eda6889f06c0cb9c1
admin/src/views/index.vue
@@ -37,6 +37,16 @@
        <el-button class="btn" :loading="loading[12]"  type="primary" @click="staticPage(12)">数智体育平台</el-button>
        <el-button class="btn" :loading="loading[13]"  type="primary" @click="staticPage(13)">空间智慧管理</el-button>
      </div>
      <div style="font-size: 20px;font-weight: bold;margin-top: 30px;color: #144077">
        【手机端静态化】
      </div>
      <div class="content">
        <el-button class="btn1" :loading="loadingMobile[0]"  type="primary" @click="staticPageMobile(0)">首页</el-button>
<!--        <el-button class="btn" :loading="loading[10]"  type="primary" @click="staticPage(10)">24H智能场馆</el-button>
        <el-button class="btn" :loading="loading[11]"  type="primary" @click="staticPage(11)">景区&游乐园</el-button>
        <el-button class="btn" :loading="loading[12]"  type="primary" @click="staticPage(12)">数智体育平台</el-button>
        <el-button class="btn" :loading="loading[13]"  type="primary" @click="staticPage(13)">空间智慧管理</el-button>-->
      </div>
    </div>
  </div>
</template>
@@ -44,13 +54,14 @@
<script>
import dayjs from 'dayjs'
import { weeks } from '@/utils/config'
import { create as createPage } from '@/api/business/static'
import { create as createPage ,createMobile as createPageMobile} from '@/api/business/static'
export default {
  components: {
  },
  data () {
    return {
      loading:[false,false,false,false,false,false,false,false,false,false]
      loading:[false,false,false,false,false,false,false,false,false,false],
      loadingMobile:[false,false,false,false,false,false,false,false,false,false]
    }
  },
  computed: {
@@ -68,6 +79,16 @@
    staticPage (index) {
      this.loading[index] = true
      createPage({ pageIndex: index }).then(res => {
        this.$message.success('操作成功')
      }).catch(e => {
        this.$tip.apiFailed(e)
      }).finally(() => {
        this.loading[index] = false
      })
    },
    staticPageMobile (index) {
      this.loadingMobile[index] = true
      createPageMobile({ pageIndex: index }).then(res => {
        this.$message.success('操作成功')
      }).catch(e => {
        this.$tip.apiFailed(e)
@@ -105,6 +126,14 @@
    margin: 10px;
    font-size: 20px;
  }
  .btn1{
    width: 18%;
    height: 60px;
    margin: 10px;
    font-size: 20px;
    background-color: #f76920;
    border: #f76920;
  }
}
.main_home {