{"version":3,"sources":["webpack:///./src/static/images/left.png","webpack:///./src/utils/date.ts","webpack:///./src/views/regime/week.vue","webpack:///./src/views/regime/week.vue?dff7","webpack:///./src/views/regime/week.vue?a07c","webpack:///./src/views/regime/week.vue?7457","webpack:///./src/static/images/right.png"],"names":["module","exports","getdate","yue","id","utc","timezone","extend","days","now","tz","month","day","date","zhou","week","year","start","end","i","w","list","Math","floor","d","time","toISOString","undefined","push","length","getweek","error","startd","j","num","title","getDay","gethour","hour","getminute","minute","gettime","class","src","alt","style","lan","$t","type","navto","item","key","xs","zhuangtai","tolive","top","times","props","setup","userinfo","store","state","query","userid","value","memberid","zoneValue","getdates","then","res","dateline","livetime","livestatus","zid","liveid","index","url","router","data","setInterval","xiaoshi","fenzhong","render","__scopeId"],"mappings":"0HAAAA,EAAOC,QAAU,8kB,mRCiBX,SAAUC,EAAQC,EAAYC,GAE/B,IAAMC,EAAM,EAAQ,QAEdC,EAAW,EAAQ,QACzB,IAAMC,OAAOF,GACb,IAAME,OAAOD,GACb,IAAME,EAAY,IACfC,EAAMD,IAAOE,GAAGN,GACpBK,EAAMA,EAAIE,MAAMF,EAAIE,QAAUR,GAC9BA,EAAMM,EAAIE,QAAU,EACpB,IAAMC,EAAMH,EAAII,OACVC,EAAOL,EAAIG,MACjBH,EAAMA,EAAII,KAAK,GACf,IAAME,EAAON,EAAIG,MACjBH,EAAMA,EAAIE,MAAMF,EAAIE,QAAU,GAC9BF,EAAMA,EAAII,KAAK,GACf,IAAMF,EAAQF,EAAII,OACZG,EAAOP,EAAIO,OACXC,EAAQD,EAAO,IAAMb,EAAM,MAC3Be,EAAMF,EAAO,IAAMb,EAAM,IAAMQ,EAEjCQ,EAAI,EACJC,EAAI,EAGFP,EAA2B,CAAC,IAElC,MAAMM,EAAIR,EAAM,CAEZ,IAAIS,EAAI,EAAGA,EAAIL,EAAMK,IACjBP,EAAK,GAAGO,GAAK,CAACC,KAAK,IAEvBF,IACA,IAAM,EAAQG,KAAKC,OAAOJ,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82thPAVfHMcPz77jJJF9ojAcH4RvlSSOqXxCqky8/VHEVIp+nHQAAAABJRU5ErkJggg==\"","import dayjs from 'dayjs'\n\ninterface Date{\n day?: number;\n list?: Array;\n}\n\ninterface GetDate{\n date: Array>;\n year: number;\n yue: number;\n day: number;\n zhou: number;\n start: string;\n end: string;\n}\n\nexport function getdate(yue: number,id: string): GetDate{\n /* eslint-disable */\n const utc = require('dayjs/plugin/utc') // dependent on utc plugin\n /* eslint-disable */\n const timezone = require('dayjs/plugin/timezone')\n dayjs.extend(utc)\n dayjs.extend(timezone)\n const days: any = dayjs;\n let now = days().tz(id)\n now = now.month(now.month() + yue);\n yue = now.month() + 1;\n const day = now.date() // 当前天\n const zhou = now.day(); // 当前周\n now = now.date(1)\n const week = now.day(); // 第一天是星期几\n now = now.month(now.month() + 1);\n now = now.date(0);\n const month = now.date(); // 当前月有几天\n const year = now.year()\n const start = year + \"-\" + yue + '-01';\n const end = year + \"-\" + yue + '-' + month;\n console.log(day,week,month)\n let i = 0;\n let w = 0;\n\n \n const date: Array> = [[]];\n \n while(i < month){\n \n for(w = 0; w < week; w++){\n date[0][w] = {list:[]};\n }\n i++;\n const zhou = Math.floor((i + w - 1) / 7)\n const d = {\n day: i,\n list: [],\n time: now.date(i).toISOString()\n }\n if(date[zhou] == undefined){\n date[zhou] = []\n }\n date[zhou].push(d)\n }\n while(date[date.length - 1].length < 7){\n date[date.length - 1].push({list:[]})\n }\n console.log(date)\n\n return {date, year, yue, day, zhou, start, end};\n}\n\n\nexport function getweek(time: string, id: string,zhou?: number){\n /* eslint-disable */\n const utc = require('dayjs/plugin/utc') // dependent on utc plugin\n /* eslint-disable */\n const timezone = require('dayjs/plugin/timezone')\n dayjs.extend(utc)\n dayjs.extend(timezone)\n const days: any = dayjs;\n console.log(id, 11111)\n let now;\n try {\n now = days((!time ? undefined : time)).tz(id)\n } catch (error) {\n now = days(undefined).tz(id)\n }\n console.log(now, 11111)\n\n if(zhou != undefined){\n now = now.day(now.day() + (zhou * 7));\n }\n const yue = (now.month() + 1 < 10 ? '0' + (now.month() + 1) : (now.month() + 1));\n const day = now.date() // 当前天\n zhou = now.day(); // 当前周几\n const year = now.year()\n const startd = now.day(0);\n const start = `${startd.year()}-${(startd.month() + 1 < 10 ? '0' + (startd.month() + 1) : (startd.month() + 1))}-${startd.date() > 9 ? startd.date() : '0' + startd.date()}`\n interface Date{\n day: string;\n list?: Array;\n }\n const date: Array = [];\n \n for(let i = 0; i < 7; i++){\n console.log(i);\n now = now.day(i)\n date[i] = {day: \"\"};\n date[i].day = now.year() + \"-\" + (now.month() + 1 < 10 ? '0' + (now.month() + 1) : (now.month() + 1)) + \"-\" + (now.date() < 10 ? '0' + now.date() : now.date())\n date[i].list = []\n for(let j = 0;j < 24; j++){\n date[i].list?.push({\n start:\"\",\n num:\"\",\n title: \"\",\n time:\"\"\n })\n }\n }\n const end = `${now.year()}-${(now.month() + 1 < 10 ? '0' + (now.month() + 1) : (now.month() + 1))}-${now.date()}`\n console.log(date)\n return {date, year, yue, day, zhou, start, end}\n}\n\n\nexport function getDay(date: string){\n const now = dayjs(date)\n console.log(now.date())\n return now.date();\n}\n\nexport function gethour(date: string){\n const now = dayjs(date)\n console.log(now.hour(), now.date(), now.minute())\n return now.hour();\n}\n\nexport function getminute(date: string){\n const now = dayjs(date)\n // console.log(now.hour(), now.date(), now.minute())\n return now.minute();\n}\n\nexport function gettime(date: string, num: number){\n let now = dayjs(date)\n const start = `${now.hour() > 9 ? now.hour() : '0' + now.hour()}:${now.minute() > 9 ? now.minute() : '0' + now.minute()}`\n now = now.minute(now.minute() + num);\n const end = `${now.hour() > 9 ? now.hour() : '0' + now.hour()}:${now.minute() > 9 ? now.minute() : '0' + now.minute()}`\n return start + \"-\" + end;\n}","\n\n","\nimport { computed, defineComponent, ref, watch } from \"vue\";\nimport { getDay, gethour, getminute, gettime, getweek } from \"@/utils/date\";\nimport store from '@/store';\nimport { getdatelist, userinfo } from '@/api';\nimport router from '@/router';\nimport dayjs from 'dayjs';\nimport { useRoute } from 'vue-router';\nimport { useI18n } from '@/utils/i18n';\n\nexport default defineComponent({\n props: {},\n setup() {\n const userinfo = computed(()=>store.state.userinfo)\n const zhou = ref(0);\n const time: any = useRoute().query.time;\n let userid = userinfo.value.memberid;\n const week = ref(getweek(time, userinfo.value.zoneValue));\n const lan = useI18n()\n function getdates(userid: number){\n getdatelist(week.value.start, week.value.end, userid).then((res: any)=>{\n console.log(res)\n for(const i in res){\n const day = getDay(res[i].dateline)\n console.log(day)\n for(const j in week.value.date){\n console.log(getDay(week.value.date[j].day))\n if(day == getDay(week.value.date[j].day)){\n console.log(\"fuzhi\")\n week.value.date[j].list[gethour(res[i].dateline)].start = getminute(res[i].dateline);\n week.value.date[j].list[gethour(res[i].dateline)].num = res[i].livetime\n week.value.date[j].list[gethour(res[i].dateline)].title = res[i].title\n week.value.date[j].list[gethour(res[i].dateline)].time = gettime(res[i].dateline, res[i].livetime)\n week.value.date[j].list[gethour(res[i].dateline)].zhuangtai = res[i].livestatus\n week.value.date[j].list[gethour(res[i].dateline)].zid = res[i].liveid\n }\n }\n }\n console.log(week.value)\n })\n }\n watch(userinfo,()=>{\n userid = userinfo.value.memberid;\n getdates(userid);\n week.value = getweek(time, userinfo.value.zoneValue);\n })\n console.log(week.value);\n \n\n getdates(userid);\n \n const top = ref(0);\n const times = ref('');\n const xs = ref(0);\n setInterval(()=>{\n /* eslint-disable */\n const utc = require('dayjs/plugin/utc') // dependent on utc plugin\n /* eslint-disable */\n const timezone = require('dayjs/plugin/timezone')\n dayjs.extend(utc)\n dayjs.extend(timezone)\n const days: any = dayjs;\n const now = days().tz(userinfo.value.zoneValue)\n const xiaoshi = now.hour()\n const fenzhong = now.minute()\n top.value = (xiaoshi + (fenzhong / 60)) * 0.63;\n times.value = (xiaoshi > 10 ? xiaoshi : '0' + xiaoshi) + \":\" + (fenzhong > 10 ? fenzhong : '0' + fenzhong);\n xs.value = xiaoshi;\n }, 2000)\n\n watch(zhou, (value) => {\n week.value = getweek(time, userinfo.value.zoneValue, value);\n console.log(week.value);\n getdates(userid)\n });\n\n function zhuangtai(index: number){\n switch (index) {\n case 0:\n return 'next'\n case 1:\n return 'ing'\n case 2:\n return 'old'\n default:\n return 'old'\n }\n }\n function navto(url: string){\n router.push(url)\n }\n function tolive(data: any){\n let url = '';\n console.log(data)\n if(data.zhuangtai != 1){\n url = '/regime/livedetail?id=' + data.zid\n }else{\n url = '/regime/liveing?id=' + data.zid\n }\n console.log(url)\n router.push(url)\n }\n \n return {\n zhou,\n week,\n navto,\n zhuangtai,\n top,\n times,\n xs,\n tolive,\n lan\n };\n },\n});\n","import { render } from \"./week.vue?vue&type=template&id=36585a16&scoped=true&bindings={}\"\nimport script from \"./week.vue?vue&type=script&lang=ts\"\nexport * from \"./week.vue?vue&type=script&lang=ts\"\n\nimport \"./week.vue?vue&type=style&index=0&id=36585a16&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-36585a16\"\n\nexport default script","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./week.vue?vue&type=style&index=0&id=36585a16&lang=scss&scoped=true\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAQCAYAAAAvf+5AAAAABHNCSVQICAgIfAhkiAAAAV5JREFUKFN1kbFKA0EQhmf2Yi6FYGnjG1jYi7VBI0i8BInGQkGSGIxWaiVoYSmpLpeAWFhJklVIk8onENKmSaNVQBsLc3dyO84lKCZ3LiwL/3wz+88M6s1qApFObBsN2Mq9wT8HdWmVEeCIALrC8ZYHmeJrGMsMQExaF/ycA8GLIoy7qVx3Eh6C/tGb1iEilAHo3VO4+pXKP/+Ff8FR5co2Ed6CgAESJe2NwtMPPAaOKpsJAKwDgiCCjGsUHnw9APpiRFaXNKAWB6eBvLxtFG9CQR+ektaCRtQGxFkCdfovGG3U5oVQbc6Z43sZ/vVjbTGiVIuBGfZZcoy8GWxGVtbY+j1DGnlqx00f1APNxKS5CyBqBPTJFcLHE21UzoTAK87ue4p44IXO+MB5wrqsXvNWjjnQI8S4k8z1AivkPd+xmGXTHSeircD6fn8SGnqMSjONJPacgbsJ2dJHGORr3z4OgKCFcVJIAAAAAElFTkSuQmCC\""],"sourceRoot":""}