| ¶Ô±ÈÐÂÎļþ | 
 |  |  | 
 |  |  | <template> | 
 |  |  |   <div class="main_home"> | 
 |  |  |     <div class="home_header"> | 
 |  |  |       <div class="mb10 fs17">ä¸å好ï¼{{ userInfo.realname }}</div> | 
 |  |  |       <div class="fs13"> | 
 |  |  |         ä»å¤©æ¯ {{ nowDate }} {{ nowWeek }}ï¼æ¬¢è¿è®¿é®è±ç±³è·³è·³å®ç½åå°ç®¡çå¹³å° | 
 |  |  |       </div> | 
 |  |  |       <div style="font-size: 20px;font-weight: bold;margin-top: 30px;color: #144077"> | 
 |  |  |         ãç½ç«éæåã | 
 |  |  |       </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> | 
 |  |  | </template> | 
 |  |  |  | 
 |  |  | <script> | 
 |  |  | import dayjs from 'dayjs' | 
 |  |  | import { weeks } from '@/utils/config' | 
 |  |  | import { create as createPage } from '@/api/business/static' | 
 |  |  | export default { | 
 |  |  |   components: { | 
 |  |  |   }, | 
 |  |  |   data () { | 
 |  |  |     return { | 
 |  |  |       loading:[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 | 
 |  |  |       }) | 
 |  |  |     }, | 
 |  |  |     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; | 
 |  |  |   } | 
 |  |  | } | 
 |  |  |  | 
 |  |  | .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> |