1 line
29 KiB
Plaintext
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","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,GAAK,CAACC,KAAK,IAEvBF,IACA,IAAM,E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b/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'\r\n\r\ninterface Date{\r\n day?: number;\r\n list?: Array<any>;\r\n}\r\n\r\ninterface GetDate{\r\n date: Array<Array<Date>>;\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<Array<Date>> = [[]];\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<any>;\r\n }\r\n const date: Array<Date> = [];\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}","<template>\r\n <div class=\"date\">\r\n <div class=\"head\">\r\n <div @click=\"shang\">\r\n <img src=\"../../static/images/left.png\" alt=\"\"> \r\n {{lan.$t(\"shangyige\")}}\r\n </div>\r\n {{month.year}}{{lan.$t(\"nian\")}}{{month.yue}}{{lan.$t(\"yues\")}}\r\n <a-button type=\"primary\" class=\"button\" @click=\"navto()\">\r\n {{lan.$t(\"zhourili\")}}\r\n </a-button>\r\n <div @click=\"xia\">\r\n {{lan.$t(\"xiayige\")}}\r\n <img src=\"../../static/images/right.png\" alt=\"\">\r\n </div>\r\n </div>\r\n <div class=\"yue\">\r\n <div class=\"heads\">\r\n <div :class=\"{zhou: yue == 0 && month.zhou == 0}\">{{lan.$t(\"zhouri\")}}</div>\r\n <div :class=\"{zhou: yue == 0 && month.zhou == 1}\">{{lan.$t(\"zhouyi\")}}</div>\r\n <div :class=\"{zhou: yue == 0 && month.zhou == 2}\">{{lan.$t(\"zhouer\")}}</div>\r\n <div :class=\"{zhou: yue == 0 && month.zhou == 3}\">{{lan.$t(\"zhousan\")}}</div>\r\n <div :class=\"{zhou: yue == 0 && month.zhou == 4}\">{{lan.$t(\"zhousi\")}}</div>\r\n <div :class=\"{zhou: yue == 0 && month.zhou == 5}\">{{lan.$t(\"zhouwu\")}}</div>\r\n <div :class=\"{zhou: yue == 0 && month.zhou == 6}\">{{lan.$t(\"zhouliu\")}}</div>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\" v-for=\"(item,index) in month.date\" :key=\"index\">\r\n <div v-for=\"(i,j) in item\" :key=\"j\">\r\n <div class=\"day\">\r\n <div :class=\"{ing:i.s == 1, old: i.s == 2 ,next: i.s == 0 }\" @click=\"navto(i.time)\">\r\n {{i.day}}\r\n <div class=\"item\" @click.stop=\"gotolive(i.id, i.statit)\" v-for=\"(i,j) in i.list\" :key=\"j\">\r\n <div></div><p>{{i.title}}</p>\r\n </div>\r\n <!-- <span class=\"ing\"></span> -->\r\n <!-- <span class=\"next\"></span> -->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<style lang=\"scss\" scoped>\r\n.date{\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n .head{\r\n width: 1320px;\r\n height: 57px;\r\n background-color: #fff;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: relative;\r\n >div{\r\n display: flex;\r\n align-items: center;\r\n font-size: 13px;\r\n color: #0DBBA4;\r\n cursor: pointer;\r\n >img{\r\n width: 7px;\r\n height: 11px;\r\n }\r\n }\r\n >div:first-child{\r\n margin-right: 90px;\r\n >img{\r\n margin-right: 11px;\r\n }\r\n }\r\n >div:last-child{\r\n margin-left: 90px;\r\n\r\n >img{\r\n margin-left: 11px;\r\n }\r\n }\r\n .button{\r\n width: 57px;\r\n height: 26px;\r\n background-color: #0DBBA4;\r\n border-right: 4px;\r\n border: none;\r\n font-size: 10px;\r\n color: #fff;\r\n padding: 0;\r\n position: absolute;\r\n right: 40px;\r\n }\r\n }\r\n .yue{\r\n width: 1320rpx;\r\n .heads{\r\n width: 1320px;\r\n height: 63px;\r\n display: flex;\r\n position: sticky; \r\n top: -23px;\r\n z-index: 1000;\r\n >div{\r\n width: 100%;\r\n height: 100%;\r\n background-color: #F5FEFD;\r\n text-align: center;\r\n line-height: 63px;\r\n font-size: 13px;\r\n color: #08AE98;\r\n border-right: 1px solid #eee;\r\n box-sizing: border-box;\r\n }\r\n .zhou{\r\n color: #fff;\r\n background: #08AE98;\r\n }\r\n }\r\n .body{\r\n .row{\r\n background-color: #fff;\r\n height: 126px;\r\n width: 100%;\r\n display: flex;\r\n >div{\r\n width: 100%;\r\n border-top: 1px solid #eee;\r\n border-right: 1px solid #eee;\r\n .day{\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n color: #111;\r\n >div{\r\n height: 100%;\r\n border-radius: 6px;\r\n padding: 18px;\r\n overflow: hidden;\r\n .item{\r\n display: flex;\r\n align-items: center;\r\n margin-top: 11px;\r\n >div{\r\n width: 6px;\r\n height: 6px;\r\n background-color: #111;\r\n margin-right: 6px;\r\n border-radius: 50%;\r\n }\r\n >p{\r\n line-height: 1;\r\n margin: 0;\r\n }\r\n }\r\n }\r\n .old{\r\n background-color: #F7F7F7;\r\n }\r\n .ing{\r\n background-color: #0DBBA4;\r\n color: #fff;\r\n .item{\r\n >div{\r\n background-color: #fff;\r\n }\r\n }\r\n }\r\n .next{\r\n background-color: #CEF9F0;\r\n color: #0DBBA4;\r\n .item{\r\n >div{\r\n background-color: #0DBBA4;\r\n }\r\n }\r\n }\r\n }\r\n \r\n }\r\n >div::last-child{\r\n border: unset;\r\n }\r\n }\r\n }\r\n }\r\n \r\n}\r\n</style>\r\n<script lang=\"ts\">\r\nimport { computed, defineComponent, ref, watch } from 'vue';\r\nimport { getdate, getDay } from \"@/utils/date\"\r\nimport { getdatelist } from '@/api';\r\nimport store from '@/store';\r\nimport router from '@/router';\r\nimport { useI18n } from '@/utils/i18n';\r\n\r\nexport default defineComponent({\r\n props:{\r\n\r\n },\r\n setup(){\r\n const lan = useI18n();\r\n const month: any = ref({zhou:0,data:[]});\r\n const yue = ref(0);\r\n const userid = computed(() => {\r\n return store.state.userinfo.memberid;\r\n \r\n })\r\n async function getdates(userid: number){\r\n getdatelist(month.value.start, month.value.end, userid).then((res: any)=>{\r\n console.log(res)\r\n // const day = getDay(res[i].dateline)\r\n for(const j in month.value.date){\r\n for(const k in month.value.date[j]){\r\n if(yue.value == 0 && month.value.date[j][k].day == month.value.day){\r\n month.value.date[j][k].s = 1\r\n }\r\n }\r\n }\r\n for(const i in res){\r\n const day = getDay(res[i].dateline)\r\n for(const j in month.value.date){\r\n for(const k in month.value.date[j]){\r\n // if(yue.value == 0 && month.value.date[j][k].day == month.value.day){\r\n // month.value.date[j][k].s = 1\r\n // } \r\n if(month.value.date[j][k].day == day){\r\n if(month.value.date[j][k].list == undefined){\r\n month.value.date[j][k].list = [];\r\n }\r\n \r\n if(!month.value.date[j][k].s){\r\n month.value.date[j][k].s = res[i].livestatus\r\n }else if(month.value.date[j][k].s != 1){\r\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\r\n }\r\n month.value.date[j][k].list.push({title: res[i].title, id: res[i].liveid, statit: res[i].livestatus});\r\n console.log(day)\r\n }\r\n }\r\n }\r\n }\r\n console.log(month.value.date, 121)\r\n })\r\n }\r\n function xia(){\r\n yue.value = yue.value + 1;\r\n month.value = getdate(yue.value, store.state.userinfo.zoneValue)\r\n getdates(userid.value)\r\n }\r\n \r\n watch(userid, ()=> {\r\n month.value = getdate(0, store.state.userinfo.zoneValue)\r\n getdates(userid.value);\r\n })\r\n function shang(){\r\n yue.value = yue.value - 1;\r\n month.value = getdate(yue.value, store.state.userinfo.zoneValue)\r\n getdates(userid.value)\r\n }\r\n \r\n function navto(date: string){\r\n router.push(\"/regime/week?time=\" + (!date? '' : date) )\r\n }\r\n function gotolive(id: string, s: number){\r\n let url = '';\r\n switch (s) {\r\n case 1:\r\n url = '/regime/liveing';\r\n break;\r\n default:\r\n url = '/regime/livedetail';\r\n }\r\n router.push({path: url,query: { id: id }})\r\n }\r\n if(userid.value != 0){\r\n month.value = getdate(0, store.state.userinfo.zoneValue)\r\n getdates(userid.value);\r\n\r\n }\r\n return {\r\n month,\r\n xia,\r\n shang,\r\n yue,\r\n navto,\r\n gotolive,\r\n lan\r\n }\r\n }\r\n})\r\n</script>","\r\nimport { computed, defineComponent, ref, watch } from 'vue';\r\nimport { getdate, getDay } from \"@/utils/date\"\r\nimport { getdatelist } from '@/api';\r\nimport store from '@/store';\r\nimport router from '@/router';\r\nimport { useI18n } from '@/utils/i18n';\r\n\r\nexport default defineComponent({\r\n props:{\r\n\r\n },\r\n setup(){\r\n const lan = useI18n();\r\n const month: any = ref({zhou:0,data:[]});\r\n const yue = ref(0);\r\n const userid = computed(() => {\r\n return store.state.userinfo.memberid;\r\n \r\n })\r\n async function getdates(userid: number){\r\n getdatelist(month.value.start, month.value.end, userid).then((res: any)=>{\r\n console.log(res)\r\n // const day = getDay(res[i].dateline)\r\n for(const j in month.value.date){\r\n for(const k in month.value.date[j]){\r\n if(yue.value == 0 && month.value.date[j][k].day == month.value.day){\r\n month.value.date[j][k].s = 1\r\n }\r\n }\r\n }\r\n for(const i in res){\r\n const day = getDay(res[i].dateline)\r\n for(const j in month.value.date){\r\n for(const k in month.value.date[j]){\r\n // if(yue.value == 0 && month.value.date[j][k].day == month.value.day){\r\n // month.value.date[j][k].s = 1\r\n // } \r\n if(month.value.date[j][k].day == day){\r\n if(month.value.date[j][k].list == undefined){\r\n month.value.date[j][k].list = [];\r\n }\r\n \r\n if(!month.value.date[j][k].s){\r\n month.value.date[j][k].s = res[i].livestatus\r\n }else if(month.value.date[j][k].s != 1){\r\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\r\n }\r\n month.value.date[j][k].list.push({title: res[i].title, id: res[i].liveid, statit: res[i].livestatus});\r\n console.log(day)\r\n }\r\n }\r\n }\r\n }\r\n console.log(month.value.date, 121)\r\n })\r\n }\r\n function xia(){\r\n yue.value = yue.value + 1;\r\n month.value = getdate(yue.value, store.state.userinfo.zoneValue)\r\n getdates(userid.value)\r\n }\r\n \r\n watch(userid, ()=> {\r\n month.value = getdate(0, store.state.userinfo.zoneValue)\r\n getdates(userid.value);\r\n })\r\n function shang(){\r\n yue.value = yue.value - 1;\r\n month.value = getdate(yue.value, store.state.userinfo.zoneValue)\r\n getdates(userid.value)\r\n }\r\n \r\n function navto(date: string){\r\n router.push(\"/regime/week?time=\" + (!date? '' : date) )\r\n }\r\n function gotolive(id: string, s: number){\r\n let url = '';\r\n switch (s) {\r\n case 1:\r\n url = '/regime/liveing';\r\n break;\r\n default:\r\n url = '/regime/livedetail';\r\n }\r\n router.push({path: url,query: { id: id }})\r\n }\r\n if(userid.value != 0){\r\n month.value = getdate(0, store.state.userinfo.zoneValue)\r\n getdates(userid.value);\r\n\r\n }\r\n return {\r\n month,\r\n xia,\r\n shang,\r\n yue,\r\n navto,\r\n gotolive,\r\n lan\r\n }\r\n }\r\n})\r\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":""} |