1 line
30 KiB
Plaintext
1 line
30 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/static/images/left.png","webpack:///./src/views/regime/date.vue?f7c0","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","yuewenzi","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","$s","render","__scopeId"],"mappings":"iGAAAA,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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BmEwQvaC32Fr6BjaVgkY27czwJrKibODAw88835/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=f46caf64&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 * 7));\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(0);\n const start = `${startd.year()}-${(startd.month() + 1 < 10 ? '0' + (startd.month() + 1) : (startd.month() + 1))}-${startd.date() > 9 ? startd.date() : '0' + startd.date()}`\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\")}}{{yuewenzi}}{{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: any = 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 const yuewenzi = computed(()=>{\n if(lan.$s() == 'en'){\n const yue = ['January','February','March','April','May','June','July','August','September','October','November','December']\n return yue[month.value.yue - 1]\n }else {\n return month.value.yue\n }\n })\n return {\n month,\n xia,\n shang,\n yue,\n navto,\n gotolive,\n lan,\n yuewenzi\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: any = 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 const yuewenzi = computed(()=>{\n if(lan.$s() == 'en'){\n const yue = ['January','February','March','April','May','June','July','August','September','October','November','December']\n return yue[month.value.yue - 1]\n }else {\n return month.value.yue\n }\n })\n return {\n month,\n xia,\n shang,\n yue,\n navto,\n gotolive,\n lan,\n yuewenzi\n }\n }\n})\n","import { render } from \"./date.vue?vue&type=template&id=f46caf64&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=f46caf64&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-f46caf64\"\n\nexport default script","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAQCAYAAAAvf+5AAAAABHNCSVQICAgIfAhkiAAAAV5JREFUKFN1kbFKA0EQhmf2Yi6FYGnjG1jYi7VBI0i8BInGQkGSGIxWaiVoYSmpLpeAWFhJklVIk8onENKmSaNVQBsLc3dyO84lKCZ3LiwL/3wz+88M6s1qApFObBsN2Mq9wT8HdWmVEeCIALrC8ZYHmeJrGMsMQExaF/ycA8GLIoy7qVx3Eh6C/tGb1iEilAHo3VO4+pXKP/+Ff8FR5co2Ed6CgAESJe2NwtMPPAaOKpsJAKwDgiCCjGsUHnw9APpiRFaXNKAWB6eBvLxtFG9CQR+ektaCRtQGxFkCdfovGG3U5oVQbc6Z43sZ/vVjbTGiVIuBGfZZcoy8GWxGVtbY+j1DGnlqx00f1APNxKS5CyBqBPTJFcLHE21UzoTAK87ue4p44IXO+MB5wrqsXvNWjjnQI8S4k8z1AivkPd+xmGXTHSeircD6fn8SGnqMSjONJPacgbsJ2dJHGORr3z4OgKCFcVJIAAAAAElFTkSuQmCC\""],"sourceRoot":""} |