beelink/dist/js/chunk-46e3b07d.3779b1f4.js.map
2020-12-04 09:25:43 +08:00

1 line
28 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/static/images/left.png","webpack:///./src/views/regime/date.vue?edc5","webpack:///./src/utils/date.ts","webpack:///./src/views/regime/date.vue","webpack:///./src/views/regime/date.vue?d6c2","webpack:///./src/views/regime/date.vue?2f34","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","shang","lan","$t","type","navto","xia","item","index","key","s","gotolive","statit","props","setup","data","userid","store","state","userinfo","memberid","getdates","value","then","res","k","dateline","livestatus","liveid","zoneValue","router","url","path","query","render","__scopeId"],"mappings":"0HAAAA,EAAOC,QAAU,8kB,oCCAjB,W,mRCiBM,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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0AXQScAFBWT5ZOQ/YEQqRdS2oC2XCIKUUb/WxxN2R4ABvdehyJnxAgzq9z4Mr82thPAVfHMcPz77jJJF9ojAcH4RvlSSOqXxCqky8/VHEVIp+nHQAAAABJRU5ErkJggg==\"","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!./date.vue?vue&type=style&index=0&id=6ffd12b1&lang=scss&scoped=true\"","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=\"date\">\n <div class=\"head\">\n <div @click=\"shang\">\n <img src=\"../../static/images/left.png\" alt=\"\"> \n {{lan.$t(\"shangyige\")}}\n </div>\n {{month.year}}{{lan.$t(\"nian\")}}{{month.yue}}{{lan.$t(\"yues\")}}\n <a-button type=\"primary\" class=\"button\" @click=\"navto()\">\n {{lan.$t(\"zhourili\")}}\n </a-button>\n <div @click=\"xia\">\n {{lan.$t(\"xiayige\")}}\n <img src=\"../../static/images/right.png\" alt=\"\">\n </div>\n </div>\n <div class=\"yue\">\n <div class=\"heads\">\n <div :class=\"{zhou: yue == 0 && month.zhou == 0}\">{{lan.$t(\"zhouri\")}}</div>\n <div :class=\"{zhou: yue == 0 && month.zhou == 1}\">{{lan.$t(\"zhouyi\")}}</div>\n <div :class=\"{zhou: yue == 0 && month.zhou == 2}\">{{lan.$t(\"zhouer\")}}</div>\n <div :class=\"{zhou: yue == 0 && month.zhou == 3}\">{{lan.$t(\"zhousan\")}}</div>\n <div :class=\"{zhou: yue == 0 && month.zhou == 4}\">{{lan.$t(\"zhousi\")}}</div>\n <div :class=\"{zhou: yue == 0 && month.zhou == 5}\">{{lan.$t(\"zhouwu\")}}</div>\n <div :class=\"{zhou: yue == 0 && month.zhou == 6}\">{{lan.$t(\"zhouliu\")}}</div>\n </div>\n <div class=\"body\">\n <div class=\"row\" v-for=\"(item,index) in month.date\" :key=\"index\">\n <div v-for=\"(i,j) in item\" :key=\"j\">\n <div class=\"day\">\n <div :class=\"{ing:i.s == 1, old: i.s == 2 ,next: i.s == 0 }\" @click=\"navto(i.time)\">\n {{i.day}}\n <div class=\"item\" @click.stop=\"gotolive(i.id, i.statit)\" v-for=\"(i,j) in i.list\" :key=\"j\">\n <div></div><p>{{i.title}}</p>\n </div>\n <!-- <span class=\"ing\"></span> -->\n <!-- <span class=\"next\"></span> -->\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n<style lang=\"scss\" scoped>\n.date{\n display: flex;\n flex-direction: column;\n align-items: center;\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 font-size: 13px;\n color: #0DBBA4;\n cursor: pointer;\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 .yue{\n width: 1320rpx;\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: 63px;\n font-size: 13px;\n color: #08AE98;\n border-right: 1px solid #eee;\n box-sizing: border-box;\n }\n .zhou{\n color: #fff;\n background: #08AE98;\n }\n }\n .body{\n .row{\n background-color: #fff;\n height: 126px;\n width: 100%;\n display: flex;\n >div{\n width: 100%;\n border-top: 1px solid #eee;\n border-right: 1px solid #eee;\n .day{\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #111;\n >div{\n height: 100%;\n border-radius: 6px;\n padding: 18px;\n overflow: hidden;\n .item{\n display: flex;\n align-items: center;\n margin-top: 11px;\n >div{\n width: 6px;\n height: 6px;\n background-color: #111;\n margin-right: 6px;\n border-radius: 50%;\n }\n >p{\n line-height: 1;\n margin: 0;\n }\n }\n }\n .old{\n background-color: #F7F7F7;\n }\n .ing{\n background-color: #0DBBA4;\n color: #fff;\n .item{\n >div{\n background-color: #fff;\n }\n }\n }\n .next{\n background-color: #CEF9F0;\n color: #0DBBA4;\n .item{\n >div{\n background-color: #0DBBA4;\n }\n }\n }\n }\n \n }\n >div::last-child{\n border: unset;\n }\n }\n }\n }\n \n}\n</style>\n<script lang=\"ts\">\nimport { computed, defineComponent, ref, watch } from 'vue';\nimport { getdate, getDay } from \"@/utils/date\"\nimport { getdatelist } from '@/api';\nimport store from '@/store';\nimport router from '@/router';\nimport { useI18n } from '@/utils/i18n';\n\nexport default defineComponent({\n props:{\n\n },\n setup(){\n const lan = useI18n();\n const month: any = ref({zhou:0,data:[]});\n const yue = ref(0);\n const userid = computed(() => {\n return store.state.userinfo.memberid;\n \n })\n async function getdates(userid: number){\n getdatelist(month.value.start, month.value.end, userid).then((res: any)=>{\n console.log(res)\n // const day = getDay(res[i].dateline)\n for(const j in month.value.date){\n for(const k in month.value.date[j]){\n if(yue.value == 0 && month.value.date[j][k].day == month.value.day){\n month.value.date[j][k].s = 1\n }\n }\n }\n for(const i in res){\n const day = getDay(res[i].dateline)\n for(const j in month.value.date){\n for(const k in month.value.date[j]){\n // if(yue.value == 0 && month.value.date[j][k].day == month.value.day){\n // month.value.date[j][k].s = 1\n // } \n if(month.value.date[j][k].day == day){\n if(month.value.date[j][k].list == undefined){\n month.value.date[j][k].list = [];\n }\n \n if(!month.value.date[j][k].s){\n month.value.date[j][k].s = res[i].livestatus\n }else if(month.value.date[j][k].s != 1){\n res[i].livestatus == 0 && month.value.date[j][k].s == 2 ? month.value.date[j][k].s = 0 : month.value.date[j][k].s = 2\n }\n month.value.date[j][k].list.push({title: res[i].title, id: res[i].liveid, statit: res[i].livestatus});\n console.log(day)\n }\n }\n }\n }\n console.log(month.value.date, 121)\n })\n }\n function xia(){\n yue.value = yue.value + 1;\n month.value = getdate(yue.value, store.state.userinfo.zoneValue)\n getdates(userid.value)\n }\n \n watch(userid, ()=> {\n month.value = getdate(0, store.state.userinfo.zoneValue)\n getdates(userid.value);\n })\n function shang(){\n yue.value = yue.value - 1;\n month.value = getdate(yue.value, store.state.userinfo.zoneValue)\n getdates(userid.value)\n }\n \n function navto(date: string){\n router.push(\"/regime/week?time=\" + (!date? '' : date) )\n }\n function gotolive(id: string, s: number){\n let url = '';\n switch (s) {\n case 1:\n url = '/regime/liveing';\n break;\n default:\n url = '/regime/livedetail';\n }\n router.push({path: url,query: { id: id }})\n }\n if(userid.value != 0){\n month.value = getdate(0, store.state.userinfo.zoneValue)\n getdates(userid.value);\n\n }\n return {\n month,\n xia,\n shang,\n yue,\n navto,\n gotolive,\n lan\n }\n }\n})\n</script>","\nimport { computed, defineComponent, ref, watch } from 'vue';\nimport { getdate, getDay } from \"@/utils/date\"\nimport { getdatelist } from '@/api';\nimport store from '@/store';\nimport router from '@/router';\nimport { useI18n } from '@/utils/i18n';\n\nexport default defineComponent({\n props:{\n\n },\n setup(){\n const lan = useI18n();\n const month: any = ref({zhou:0,data:[]});\n const yue = ref(0);\n const userid = computed(() => {\n return store.state.userinfo.memberid;\n \n })\n async function getdates(userid: number){\n getdatelist(month.value.start, month.value.end, userid).then((res: any)=>{\n console.log(res)\n // const day = getDay(res[i].dateline)\n for(const j in month.value.date){\n for(const k in month.value.date[j]){\n if(yue.value == 0 && month.value.date[j][k].day == month.value.day){\n month.value.date[j][k].s = 1\n }\n }\n }\n for(const i in res){\n const day = getDay(res[i].dateline)\n for(const j in month.value.date){\n for(const k in month.value.date[j]){\n // if(yue.value == 0 && month.value.date[j][k].day == month.value.day){\n // month.value.date[j][k].s = 1\n // } \n if(month.value.date[j][k].day == day){\n if(month.value.date[j][k].list == undefined){\n month.value.date[j][k].list = [];\n }\n \n if(!month.value.date[j][k].s){\n month.value.date[j][k].s = res[i].livestatus\n }else if(month.value.date[j][k].s != 1){\n res[i].livestatus == 0 && month.value.date[j][k].s == 2 ? month.value.date[j][k].s = 0 : month.value.date[j][k].s = 2\n }\n month.value.date[j][k].list.push({title: res[i].title, id: res[i].liveid, statit: res[i].livestatus});\n console.log(day)\n }\n }\n }\n }\n console.log(month.value.date, 121)\n })\n }\n function xia(){\n yue.value = yue.value + 1;\n month.value = getdate(yue.value, store.state.userinfo.zoneValue)\n getdates(userid.value)\n }\n \n watch(userid, ()=> {\n month.value = getdate(0, store.state.userinfo.zoneValue)\n getdates(userid.value);\n })\n function shang(){\n yue.value = yue.value - 1;\n month.value = getdate(yue.value, store.state.userinfo.zoneValue)\n getdates(userid.value)\n }\n \n function navto(date: string){\n router.push(\"/regime/week?time=\" + (!date? '' : date) )\n }\n function gotolive(id: string, s: number){\n let url = '';\n switch (s) {\n case 1:\n url = '/regime/liveing';\n break;\n default:\n url = '/regime/livedetail';\n }\n router.push({path: url,query: { id: id }})\n }\n if(userid.value != 0){\n month.value = getdate(0, store.state.userinfo.zoneValue)\n getdates(userid.value);\n\n }\n return {\n month,\n xia,\n shang,\n yue,\n navto,\n gotolive,\n lan\n }\n }\n})\n","import { render } from \"./date.vue?vue&type=template&id=6ffd12b1&scoped=true&bindings={}\"\nimport script from \"./date.vue?vue&type=script&lang=ts\"\nexport * from \"./date.vue?vue&type=script&lang=ts\"\n\nimport \"./date.vue?vue&type=style&index=0&id=6ffd12b1&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-6ffd12b1\"\n\nexport default script","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAQCAYAAAAvf+5AAAAABHNCSVQICAgIfAhkiAAAAV5JREFUKFN1kbFKA0EQhmf2Yi6FYGnjG1jYi7VBI0i8BInGQkGSGIxWaiVoYSmpLpeAWFhJklVIk8onENKmSaNVQBsLc3dyO84lKCZ3LiwL/3wz+88M6s1qApFObBsN2Mq9wT8HdWmVEeCIALrC8ZYHmeJrGMsMQExaF/ycA8GLIoy7qVx3Eh6C/tGb1iEilAHo3VO4+pXKP/+Ff8FR5co2Ed6CgAESJe2NwtMPPAaOKpsJAKwDgiCCjGsUHnw9APpiRFaXNKAWB6eBvLxtFG9CQR+ektaCRtQGxFkCdfovGG3U5oVQbc6Z43sZ/vVjbTGiVIuBGfZZcoy8GWxGVtbY+j1DGnlqx00f1APNxKS5CyBqBPTJFcLHE21UzoTAK87ue4p44IXO+MB5wrqsXvNWjjnQI8S4k8z1AivkPd+xmGXTHSeircD6fn8SGnqMSjONJPacgbsJ2dJHGORr3z4OgKCFcVJIAAAAAElFTkSuQmCC\""],"sourceRoot":""}