{"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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AAME,WAC/Bc,EAAUvE,EAAI6B,OACd2C,EAAWxE,EAAI+B,SACrBe,EAAIS,MAAsC,KAA7BgB,EAAWC,EAAW,IACnCzB,EAAMQ,OAASgB,EAAU,GAAKA,EAAU,IAAMA,GAAW,KAAOC,EAAW,GAAKA,EAAW,IAAMA,GACjG7B,EAAGY,MAAQgB,IACZ,KAEH,mBAAMlE,GAAM,SAACkD,GACTjD,EAAKiD,MAAQ,eAAQvC,EAAMkC,EAASK,MAAME,UAAWF,GAErDG,EAASJ,MA8BN,CACHjD,OACAC,OACAkC,QACAI,YACAE,MACAC,QACAJ,KACAE,SACAR,U,UC3GZ,EAAOoC,OAAS,EAChB,EAAOC,UAAY,kBAEJ,gB,kCCRf,W,mBCAAnF,EAAOC,QAAU","file":"js/chunk-3c7641ed.5518a539.js","sourcesContent":["module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAQCAYAAAAvf+5AAAAABHNCSVQICAgIfAhkiAAAAVxJREFUKFN9krtKA0EUhs+ZJbsbCxuFVNqkSRvwCazSBHSSYC3C5lKJYGOhaKVWGkmyQdDCmCBmEwQvaC32Fr6BjaVgkY27czwJrKibODAw88835/LPIPw3mvVp0ySHCPdxHBdtVWaUoT0wkCCAw5Gg3q4nBNI9IMxyoJ2eLGyFwEjbntME3QLgFBGsupnC0SDrL9Ds1OYJsQsKooi03JPF86C0b1B3aouI0AJiDCjnZko3P+sfgqZTWQHUbC76wwdMezL/+LdJNDrVdQSxB0RvPmLqUxaeRzmBZsfe5oNNnq9KiVQ/a72MBAei4dglrq/My3dPiLS3YD2FUgeCflnNoSbOeO9zM0uuLF6HmgmEoT0AXQScAFBWT5ZOQ/YEQqRdS2oC2XCIKUUb/WxxN2R4ABvdehyJnxAgzq9z4Mr82thPAVfHMcPz77jJJF9ojAcH4RvlSSOqXxCqky8/VHEVIp+nHQAAAABJRU5ErkJggg==\"","import dayjs from 'dayjs'\r\n\r\ninterface Date{\r\n day?: number;\r\n list?: Array;\r\n}\r\n\r\ninterface GetDate{\r\n date: Array>;\r\n year: number;\r\n yue: number;\r\n day: number;\r\n zhou: number;\r\n start: string;\r\n end: string;\r\n}\r\n\r\nexport function getdate(yue: number,id: string): GetDate{\r\n /* eslint-disable */\r\n const utc = require('dayjs/plugin/utc') // dependent on utc plugin\r\n /* eslint-disable */\r\n const timezone = require('dayjs/plugin/timezone')\r\n dayjs.extend(utc)\r\n dayjs.extend(timezone)\r\n const days: any = dayjs;\r\n let now = days().tz(id)\r\n now = now.month(now.month() + yue);\r\n yue = now.month() + 1;\r\n const day = now.date() // 当前天\r\n const zhou = now.day(); // 当前周\r\n now = now.date(1)\r\n const week = now.day(); // 第一天是星期几\r\n now = now.month(now.month() + 1);\r\n now = now.date(0);\r\n const month = now.date(); // 当前月有几天\r\n const year = now.year()\r\n const start = year + \"-\" + yue + '-01';\r\n const end = year + \"-\" + yue + '-' + month;\r\n console.log(day,week,month)\r\n let i = 0;\r\n let w = 0;\r\n\r\n \r\n const date: Array> = [[]];\r\n \r\n while(i < month){\r\n \r\n for(w = 0; w < week; w++){\r\n date[0][w] = {list:[]};\r\n }\r\n i++;\r\n const zhou = Math.floor((i + w - 1) / 7)\r\n const d = {\r\n day: i,\r\n list: [],\r\n time: now.date(i).toISOString()\r\n }\r\n if(date[zhou] == undefined){\r\n date[zhou] = []\r\n }\r\n date[zhou].push(d)\r\n }\r\n while(date[date.length - 1].length < 7){\r\n date[date.length - 1].push({list:[]})\r\n }\r\n console.log(date)\r\n\r\n return {date, year, yue, day, zhou, start, end};\r\n}\r\n\r\n\r\nexport function getweek(time: string, id: string,zhou?: number){\r\n /* eslint-disable */\r\n const utc = require('dayjs/plugin/utc') // dependent on utc plugin\r\n /* eslint-disable */\r\n const timezone = require('dayjs/plugin/timezone')\r\n dayjs.extend(utc)\r\n dayjs.extend(timezone)\r\n const days: any = dayjs;\r\n console.log(id, 11111)\r\n let now;\r\n try {\r\n now = days((!time ? undefined : time)).tz(id)\r\n } catch (error) {\r\n now = days(undefined).tz(id)\r\n }\r\n console.log(now, 11111)\r\n\r\n if(zhou != undefined){\r\n now = now.day(now.day() + (zhou * 6));\r\n }\r\n const yue = (now.month() + 1 < 10 ? '0' + (now.month() + 1) : (now.month() + 1));\r\n const day = now.date() // 当前天\r\n zhou = now.day(); // 当前周几\r\n const year = now.year()\r\n const startd = now.day(1).date();\r\n const start = `${year}-${yue}-${startd}`\r\n interface Date{\r\n day: string;\r\n list?: Array;\r\n }\r\n const date: Array = [];\r\n \r\n for(let i = 0; i < 7; i++){\r\n console.log(i);\r\n now = now.day(i)\r\n date[i] = {day: \"\"};\r\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())\r\n date[i].list = []\r\n for(let j = 0;j < 24; j++){\r\n date[i].list?.push({\r\n start:\"\",\r\n num:\"\",\r\n title: \"\",\r\n time:\"\"\r\n })\r\n }\r\n }\r\n const end = `${now.year()}-${(now.month() + 1 < 10 ? '0' + (now.month() + 1) : (now.month() + 1))}-${now.date()}`\r\n console.log(date)\r\n return {date, year, yue, day, zhou, start, end}\r\n}\r\n\r\n\r\nexport function getDay(date: string){\r\n const now = dayjs(date)\r\n console.log(now.date())\r\n return now.date();\r\n}\r\n\r\nexport function gethour(date: string){\r\n const now = dayjs(date)\r\n console.log(now.hour(), now.date(), now.minute())\r\n return now.hour();\r\n}\r\n\r\nexport function getminute(date: string){\r\n const now = dayjs(date)\r\n // console.log(now.hour(), now.date(), now.minute())\r\n return now.minute();\r\n}\r\n\r\nexport function gettime(date: string, num: number){\r\n let now = dayjs(date)\r\n const start = `${now.hour() > 9 ? now.hour() : '0' + now.hour()}:${now.minute() > 9 ? now.minute() : '0' + now.minute()}`\r\n now = now.minute(now.minute() + num);\r\n const end = `${now.hour() > 9 ? now.hour() : '0' + now.hour()}:${now.minute() > 9 ? now.minute() : '0' + now.minute()}`\r\n return start + \"-\" + end;\r\n}","\r\n\r\n","\r\nimport { computed, defineComponent, ref, watch } from \"vue\";\r\nimport { getDay, gethour, getminute, gettime, getweek } from \"@/utils/date\";\r\nimport store from '@/store';\r\nimport { getdatelist, userinfo } from '@/api';\r\nimport router from '@/router';\r\nimport dayjs from 'dayjs';\r\nimport { useRoute } from 'vue-router';\r\nimport { useI18n } from '@/utils/i18n';\r\n\r\nexport default defineComponent({\r\n props: {},\r\n setup() {\r\n const userinfo = computed(()=>store.state.userinfo)\r\n const zhou = ref(0);\r\n const time: any = useRoute().query.time;\r\n let userid = userinfo.value.memberid;\r\n const week = ref(getweek(time, userinfo.value.zoneValue));\r\n const lan = useI18n()\r\n function getdates(userid: number){\r\n getdatelist(week.value.start, week.value.end, userid).then((res: any)=>{\r\n console.log(res)\r\n for(const i in res){\r\n const day = getDay(res[i].dateline)\r\n console.log(day)\r\n for(const j in week.value.date){\r\n console.log(getDay(week.value.date[j].day))\r\n if(day == getDay(week.value.date[j].day)){\r\n console.log(\"fuzhi\")\r\n week.value.date[j].list[gethour(res[i].dateline)].start = getminute(res[i].dateline);\r\n week.value.date[j].list[gethour(res[i].dateline)].num = res[i].livetime\r\n week.value.date[j].list[gethour(res[i].dateline)].title = res[i].title\r\n week.value.date[j].list[gethour(res[i].dateline)].time = gettime(res[i].dateline, res[i].livetime)\r\n week.value.date[j].list[gethour(res[i].dateline)].zhuangtai = res[i].livestatus\r\n week.value.date[j].list[gethour(res[i].dateline)].zid = res[i].liveid\r\n }\r\n }\r\n }\r\n console.log(week.value)\r\n })\r\n }\r\n watch(userinfo,()=>{\r\n userid = userinfo.value.memberid;\r\n getdates(userid);\r\n week.value = getweek(time, userinfo.value.zoneValue);\r\n })\r\n console.log(week.value);\r\n \r\n\r\n getdates(userid);\r\n \r\n const top = ref(0);\r\n const times = ref('');\r\n const xs = ref(0);\r\n setInterval(()=>{\r\n /* eslint-disable */\r\n const utc = require('dayjs/plugin/utc') // dependent on utc plugin\r\n /* eslint-disable */\r\n const timezone = require('dayjs/plugin/timezone')\r\n dayjs.extend(utc)\r\n dayjs.extend(timezone)\r\n const days: any = dayjs;\r\n const now = days().tz(userinfo.value.zoneValue)\r\n const xiaoshi = now.hour()\r\n const fenzhong = now.minute()\r\n top.value = (xiaoshi + (fenzhong / 60)) * 0.63;\r\n times.value = (xiaoshi > 10 ? xiaoshi : '0' + xiaoshi) + \":\" + (fenzhong > 10 ? fenzhong : '0' + fenzhong);\r\n xs.value = xiaoshi;\r\n }, 2000)\r\n\r\n watch(zhou, (value) => {\r\n week.value = getweek(time, userinfo.value.zoneValue, value);\r\n console.log(week.value);\r\n getdates(userid)\r\n });\r\n\r\n function zhuangtai(index: number){\r\n switch (index) {\r\n case 0:\r\n return 'next'\r\n case 1:\r\n return 'ing'\r\n case 2:\r\n return 'old'\r\n default:\r\n return 'old'\r\n }\r\n }\r\n function navto(url: string){\r\n router.push(url)\r\n }\r\n function tolive(data: any){\r\n let url = '';\r\n console.log(data)\r\n if(data.zhuangtai != 1){\r\n url = '/regime/livedetail?id=' + data.zid\r\n }else{\r\n url = '/regime/liveing?id=' + data.zid\r\n }\r\n console.log(url)\r\n router.push(url)\r\n }\r\n \r\n return {\r\n zhou,\r\n week,\r\n navto,\r\n zhuangtai,\r\n top,\r\n times,\r\n xs,\r\n tolive,\r\n lan\r\n };\r\n },\r\n});\r\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":""}