| | |
| | | <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> |
| | |
| | | <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: { |
| | |
| | | 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) |
| | |
| | | margin: 10px; |
| | | font-size: 20px; |
| | | } |
| | | .btn1{ |
| | | width: 18%; |
| | | height: 60px; |
| | | margin: 10px; |
| | | font-size: 20px; |
| | | background-color: #f76920; |
| | | border: #f76920; |
| | | } |
| | | } |
| | | |
| | | .main_home { |