beelink/dist/js/chunk-46e3b07d.9ff40c5c.js.map
2020-12-01 17:14:44 +08:00

1 line
29 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","console","log","i","w","list","Math","floor","d","time","toISOString","undefined","push","length","getweek","error","startd","j","num","title","getDay","gethour","hour","minute","getminute","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,EACrCQ,QAAQC,IAAIR,EAAIG,EAAKJ,GACrB,IAAIU,EAAI,EACJC,EAAI,EAGFT,EAA2B,CAAC,IAElC,MAAMQ,EAAIV,EAAM,CAEZ,IAAI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lKJYGOhaKVWGkmyQdDCmCBmEwQvaC32Fr6BjaVgkY27czwJrKibODAw88835/LPIPw3mvVp0ySHCPdxHBdtVWaUoT0wkCCAw5Gg3q4nBNI9IMxyoJ2eLGyFwEjbntME3QLgFBGsupnC0SDrL9Ds1OYJsQsKooi03JPF86C0b1B3aouI0AJiDCjnZko3P+sfgqZTWQHUbC76wwdMezL/+LdJNDrVdQSxB0RvPmLqUxaeRzmBZsfe5oNNnq9KiVQ/a72MBAei4dglrq/My3dPiLS3YD2FUgeCflnNoSbOeO9zM0uuLF6HmgmEoT0AXQScAFBWT5ZOQ/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":""}