beelink/dist/js/chunk-3c7641ed.47b122a8.js.map
2020-11-25 10:00:46 +08:00

1 line
32 KiB
Plaintext

{"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,IACj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nHQAAAABJRU5ErkJggg==\"","import dayjs from 'dayjs'\n\ninterface Date{\n day?: number;\n list?: Array<any>;\n}\n\ninterface GetDate{\n date: Array<Array<Date>>;\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<Array<Date>> = [[]];\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 * 6));\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(1).date();\n const start = `${year}-${yue}-${startd}`\n interface Date{\n day: string;\n list?: Array<any>;\n }\n const date: Array<Date> = [];\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}","<template>\n <div class=\"week\">\n <div class=\"head\">\n <div @click=\"zhou--\">\n <img src=\"../../static/images/left.png\" alt=\"\" />\n {{lan.$t(\"shangyizhou\")}}\n </div>\n {{week.year}}{{lan.$t(\"nian\")}}{{week.yue}}{{lan.$t(\"yues\")}}\n <a-button type=\"primary\" class=\"button\" @click=\"navto('/regime/date')\"> {{lan.$t(\"yuerili\")}} </a-button>\n <div @click=\"zhou++\">\n {{lan.$t(\"xiayizhou\")}}\n <img src=\"../../static/images/right.png\" alt=\"\" />\n </div>\n </div>\n <div class=\"week\">\n <div class=\"heads\">\n <div></div>\n <div :class=\"{ zhou: zhou == 0 && week.zhou == 0 }\">\n {{lan.$t(\"zhouri\")}}<span>{{ week.date[0].day }}</span>\n </div>\n <div :class=\"{ zhou: zhou == 0 && week.zhou == 1 }\">\n {{lan.$t(\"zhouyi\")}}<span>{{ week.date[1].day }}</span>\n </div>\n <div :class=\"{ zhou: zhou == 0 && week.zhou == 2 }\">\n {{lan.$t(\"zhouer\")}}<span>{{ week.date[2].day }}</span>\n </div>\n <div :class=\"{ zhou: zhou == 0 && week.zhou == 3 }\">\n {{lan.$t(\"zhousan\")}}<span>{{ week.date[3].day }}</span>\n </div>\n <div :class=\"{ zhou: zhou == 0 && week.zhou == 4 }\">\n {{lan.$t(\"zhousi\")}}<span>{{ week.date[4].day }}</span>\n </div>\n <div :class=\"{ zhou: zhou == 0 && week.zhou == 5 }\">\n {{lan.$t(\"zhouwu\")}}<span>{{ week.date[5].day }}</span>\n </div>\n <div :class=\"{ zhou: zhou == 0 && week.zhou == 6 }\">\n {{lan.$t(\"zhouliu\")}}<span>{{ week.date[6].day }}</span>\n </div>\n </div>\n <div class=\"body\">\n <div class=\"row\" v-for=\"item in 24\" :key=\"item\">\n <div class=\"day date\" :style=\"{'background-color': item - 1 == xs ? '#0DBBA4' : '', 'color': item - 1 == xs ? '#fff' : ''}\">\n {{ item > 9 ? item - 1 : \"0\" + (item - 1) }}:00-{{\n item > 9 ? item : \"0\" + item\n }}:00\n </div>\n <div v-for=\"i in 7\" :key=\"i\" >\n <div class=\"day\">\n <div :class=\"zhuangtai(week.date[i -1].list[item - 1].zhuangtai)\" v-if=\"week.date[i -1].list[item - 1].title != ''\" :style=\"{'top': (week.date[i -1].list[item - 1].start / 60 * 0.63) + 'rem', 'min-height': (week.date[i -1].list[item - 1].num / 60 * 0.63) + 'rem' }\" @click=\"tolive(week.date[i -1].list[item - 1])\">\n <div class=\"one-line-hide\" style=\"max-width: 1.5rem\">\n {{week.date[i -1].list[item - 1].title}}\n </div>\n <div>{{week.date[i -1].list[item - 1].time}}</div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"lien\" :style=\"{'top': top + 'rem'}\">\n <div class=\"heng\">\n <div class=\"dian\"></div>\n <div class=\"xian\"></div>\n </div>\n <div class=\"times\">{{times}}</div>\n </div>\n </div>\n </div>\n </div>\n</template>\n<style lang=\"scss\" scoped>\n.week {\n display: flex;\n flex-direction: column;\n align-items: center;\n \n .head {\n width: 1320px;\n height: 57px;\n background-color: #fff;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n > div {\n display: flex;\n align-items: center;\n cursor: pointer;\n font-size: 13px;\n color: #0dbba4;\n > img {\n width: 7px;\n height: 11px;\n }\n }\n > div:first-child {\n margin-right: 90px;\n > img {\n margin-right: 11px;\n }\n }\n > div:last-child {\n margin-left: 90px;\n\n > img {\n margin-left: 11px;\n }\n }\n .button {\n width: 57px;\n height: 26px;\n background-color: #0dbba4;\n border-right: 4px;\n border: none;\n font-size: 10px;\n color: #fff;\n padding: 0;\n position: absolute;\n right: 40px;\n }\n }\n .week {\n .heads {\n width: 1320px;\n height: 63px;\n display: flex;\n position: sticky; \n top: -23px;\n z-index: 1000;\n > div {\n width: 100%;\n height: 100%;\n background-color: #f5fefd;\n text-align: center;\n line-height: 1;\n font-size: 13px;\n color: #08ae98;\n border-right: 1px solid #eee;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n\n > span {\n font-size: 11px;\n margin-top: 9px;\n color: #111;\n }\n }\n .zhou {\n color: #fff;\n background: #08ae98;\n > span {\n color: #fff;\n }\n }\n }\n .body {\n width: 100%;\n overflow: hidden;\n position: relative;\n .row {\n background-color: #fff;\n height: 63px;\n width: 100%;\n display: flex;\n .date {\n background-color: #f5fefd;\n text-align: center;\n line-height: 63px;\n font-size: 11px;\n color: #111;\n }\n > div {\n width: 100%;\n border-top: 1px solid #eee;\n border-right: 1px solid #eee;\n .day {\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #111;\n position: relative;\n > div {\n position: absolute;\n min-height: 100%;\n width: 100%;\n border-radius: 6px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-size: 11px;\n border-radius: 6px;\n z-index: 999;\n overflow: hidden;\n > div:last-child {\n font-size: 11px;\n margin-top: 8px;\n }\n }\n .old {\n background-color: #f7f7f7;\n color: #111;\n\n }\n .ing {\n background-color: #0dbba4;\n color: #fff;\n }\n .next {\n background-color: #cef9f0;\n color: #0dbba4;\n }\n }\n }\n > div::last-child {\n border: unset;\n }\n }\n .lien{\n width: 100%;\n position: absolute;\n top: 0;\n left: 165px;\n .heng{\n display: flex;\n align-items: center;\n }\n .dian{\n width: 6px;\n height: 6px;\n flex-shrink: 0;\n background-color: #FFFA18;\n border-radius: 50%;\n }\n .xian{\n width: 100%;\n height: 2px;\n background: linear-gradient(90deg, #FFFA18, #D0EB3D, #87E062, #42DE9D, #00DAC2);\n }\n }\n .times{\n font-size: 11px;\n color: #08AE98;\n }\n }\n }\n}\n</style>\n<script lang=\"ts\">\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<any>(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</script>","\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<any>(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":""}