¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="main_home" style="padding-bottom: 30px;"> |
| | | <div class="home_header"> |
| | | <div class="mb10 fs17">ä¸å好ï¼{{ userInfo.realname }}</div> |
| | | <div class="fs13"> |
| | | ä»å¤©æ¯ {{ nowDate }} {{ nowWeek }}ï¼æ¬¢è¿è®¿é®è±ç±³è·³è·³å®ç½åå°ç®¡çå¹³å° |
| | | </div> |
| | | <div style="border: 1px solid #cccccc;padding: 20px;margin-top: 30px;"> |
| | | <div style="font-size: 20px;font-weight: bold;color: #144077"> |
| | | ãPCç½ç«éæåã |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn" :loading="loading[0]" type="primary" @click="staticPage(0)">é¦é¡µ</el-button> |
| | | <el-button class="btn" :loading="loading[6]" type="primary" @click="staticPage(6)">Alotç©è</el-button> |
| | | <el-button class="btn" :loading="loading[5]" type="primary" @click="staticPage(5)">ææ°å¨æ</el-button> |
| | | <el-button class="btn" :loading="loading[3]" type="primary" @click="staticPage(3)">å
³äºæä»¬</el-button> |
| | | <el-button class="btn" :loading="loading[4]" type="primary" @click="staticPage(4)">æ¸ éåä½</el-button> |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn" :loading="loading[7]" type="primary" @click="staticPage(7)">ææ°å¨æè¯¦æ
</el-button> |
| | | <el-button class="btn" :loading="loading[9]" type="primary" @click="staticPage(9)">å®¢æ·æ¡ä¾è¯¦æ
</el-button> |
| | | <el-button class="btn" :loading="loading[9]" type="primary" @click="staticPage(14)">è½®æå¾è¯¦æ
</el-button> |
| | | </div> |
| | | <div style="font-size: 20px;font-weight: bold;margin-top: 30px;color: #144077"> |
| | | ãæºæ
§ç³»ç»éæåã |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn" :loading="loading[1]" type="primary" @click="staticPage(1)">æºæ
§ç³»ç»è¿è¥ç³»ç»</el-button> |
| | | <el-button class="btn" :loading="loading[2]" type="primary" @click="staticPage(2)">æºæ
§ç³»ç»è¿ç»´ç³»ç»</el-button> |
| | | </div> |
| | | <div style="font-size: 20px;font-weight: bold;margin-top: 30px;color: #144077"> |
| | | ãè§£å³æ¹æ¡éæåã |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn" :loading="loading[8]" type="primary" @click="staticPage(8)">æ°æºä½è²åºé¦</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 style="border: 1px solid #cccccc;padding: 20px;margin-top: 30px;"> |
| | | <div style="font-size: 20px;font-weight: bold; color: #144077"> |
| | | ãææºç«¯éæåã |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn1" :loading="loadingMobile[0]" type="primary" @click="staticPageMobile(0)">é¦é¡µ</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[21]" type="primary" @click="staticPageMobile(21)">æ¯åº&游ä¹å</el-button> |
| | | <el-button class="btn1" :loading="loading[18]" type="primary" @click="staticPageMobile(18)">å®¢æ·æ¡ä¾è¯¦æ
</el-button> |
| | | <el-button class="btn1" :loading="loading[19]" type="primary" @click="staticPageMobile(19)">è½®æå¾è¯¦æ
</el-button> |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn1" :loading="loadingMobile[20]" type="primary" @click="staticPageMobile(20)">æ¸ éåä½</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[21]" type="primary" @click="staticPageMobile(21)">å
³äºæä»¬</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[16]" type="primary" @click="staticPageMobile(16)">ææ°å¨æ</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[22]" type="primary" @click="staticPageMobile(22)">ææ°å¨æå表</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[17]" type="primary" @click="staticPageMobile(17)">ææ°å¨æè¯¦æ
</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="loading[11]" type="primary" @click="staticPageMobile(11)">æ°æºä½è²åºé¦</el-button> |
| | | <el-button class="btn1" :loading="loading[12]" type="primary" @click="staticPageMobile(12)">24Hæºè½åºé¦</el-button> |
| | | <el-button class="btn1" :loading="loading[13]" type="primary" @click="staticPageMobile(13)">æ°æºä½è²å¹³å°</el-button> |
| | | <el-button class="btn1" :loading="loading[14]" type="primary" @click="staticPageMobile(14)">æ¯åº&游ä¹å</el-button> |
| | | <el-button class="btn1" :loading="loading[15]" type="primary" @click="staticPageMobile(15)">ç©ºé´æºæ
§ç®¡ç</el-button> |
| | | </div> |
| | | <div style="font-size: 20px;font-weight: bold; color: #144077;margin-top: 30px;"> |
| | | ãæºæ
§ç³»ç»ã |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn1" :loading="loadingMobile[1]" type="primary" @click="staticPageMobile(1)">æºæ
§ç³»ç»è¿è¥ç³»ç»</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[2]" type="primary" @click="staticPageMobile(2)">æºæ
§ç³»ç»è¿ç»´ç³»ç»</el-button> |
| | | </div> |
| | | <div style="font-size: 20px;font-weight: bold; color: #144077;margin-top: 30px;"> |
| | | ãæ°æºä½è²åºé¦ã |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn1" :loading="loadingMobile[3]" type="primary" @click="staticPageMobile(3)">综åä½è²åºé¦</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[4]" type="primary" @click="staticPageMobile(4)">å
¨æ°å¥èº«ä¸å¿</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[5]" type="primary" @click="staticPageMobile(5)">æ ¡åä½è²åºé¦</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[6]" type="primary" @click="staticPageMobile(6)">å°éªä½è²åºé¦</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[7]" type="primary" @click="staticPageMobile(7)">游泳ä½è²åºé¦</el-button> |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn1" :loading="loadingMobile[8]" type="primary" @click="staticPageMobile(8)">æºæ
§ä½è²å
Œ</el-button> |
| | | </div> |
| | | <div style="font-size: 20px;font-weight: bold; color: #144077;margin-top: 30px;"> |
| | | ã24Hæºè½åºé¦ã |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn1" :loading="loadingMobile[9]" type="primary" @click="staticPageMobile(9)">24Hæºè½åºé¦</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[10]" type="primary" @click="staticPageMobile(10)">æ 人å¼å®åºé¦</el-button> |
| | | </div> |
| | | <div style="font-size: 20px;font-weight: bold; color: #144077;margin-top: 30px;"> |
| | | ãæ°æºä½è²å¹³å°ã |
| | | </div> |
| | | <div class="content"> |
| | | <el-button class="btn1" :loading="loadingMobile[11]" type="primary" @click="staticPageMobile(11)">ä½è²è¿éè¿è¥å¹³å°</el-button> |
| | | <el-button class="btn1" :loading="loadingMobile[12]" type="primary" @click="staticPageMobile(12)">çå¸çº§æ°æºä½è²åºé¦</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import dayjs from 'dayjs' |
| | | import { weeks } from '@/utils/config' |
| | | 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], |
| | | loadingMobile:[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false] |
| | | } |
| | | }, |
| | | computed: { |
| | | userInfo () { |
| | | return this.$store.state.userInfo |
| | | } |
| | | }, |
| | | created () { |
| | | }, |
| | | mounted () { |
| | | this.updateDate() |
| | | // this.initData() |
| | | }, |
| | | methods: { |
| | | 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) |
| | | }).finally(() => { |
| | | this.loading[index] = false |
| | | }) |
| | | }, |
| | | updateDate () { |
| | | this.nowDate = dayjs().format('YYYYå¹´MæDæ¥') |
| | | this.nowWeek = weeks[new Date().getDay()] |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | div { |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .home_title { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | color: #222222; |
| | | line-height: 22px; |
| | | } |
| | | .content { |
| | | display: flex; |
| | | margin-top: 30px; |
| | | width: 100%; |
| | | .btn{ |
| | | width: 18%; |
| | | height: 60px; |
| | | margin: 10px; |
| | | font-size: 20px; |
| | | } |
| | | .btn1{ |
| | | width: 18%; |
| | | height: 60px; |
| | | margin: 10px; |
| | | font-size: 20px; |
| | | background-color: #f76920; |
| | | border: #f76920; |
| | | } |
| | | } |
| | | |
| | | .main_home { |
| | | background: #f4f7fc; |
| | | position: relative; |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow: auto; |
| | | padding: 92px 20px 20px; |
| | | .home_header { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 200px; |
| | | padding: 20px; |
| | | color: #fff; |
| | | background: linear-gradient(180deg, #076ae5 0%, rgba(32, 127, 247, 0) 100%); |
| | | } |
| | | } |
| | | </style> |