You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
23 KiB
1 lines
23 KiB
{"version":3,"sources":["webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/w-picker/range-picker.vue?4b15","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/w-picker/range-picker.vue?c85c","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/w-picker/range-picker.vue?2bc9","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/w-picker/range-picker.vue?8e17","uni-app:///components/w-picker/range-picker.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/w-picker/range-picker.vue?9b65","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/w-picker/range-picker.vue?1917"],"names":["data","pickVal","range","checkObj","props","itemHeight","type","default","value","current","startYear","endYear","watch","created","methods","formatNum","checkValue","example","console","resetToData","tdays","tmonths","resetData","fmonths","fdays","tyears","fyears","getData","tMonth","tDay","tHours","tMinutes","tSeconds","initstartDate","endDate","returnArr","startDVal","endDVal","getDval","dVal","initData","full","obj","fyear","fmonth","fday","tyear","tmonth","tday","result","handlerChange","month","day","hour","minute","second","note","province","city","area","months","endYears","endMonths","endDays","startDays","arr"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyH;AACzH;AACgE;AACL;AACc;;;AAGzE;AAC0M;AAC1M,gBAAgB,iNAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,uFAAM;AACR,EAAE,gGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA4yB,CAAgB,0yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBC6Bh0B;EACAA;IACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MACAC;MACAC;IACA;IACAC;MACAF;MACAC;QACA;MACA;IACA;IACAE;MAAA;MACAH;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;IACAI;MACAL;MACAC;IACA;EACA;EACAK;IACAJ;MACA;IACA;EACA;EACAK;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MACA;QAAAC;MACA;QACAC;MACA;MACA;IACA;IACAC;MACA;MACA;QAAAC;MACA;MACA;MACA;MACA;QACAC;MACA;MACA;QACAD;MACA;MACA;QACAC;QACAD;MACA;IACA;IACAE;MACA;QAAAC;QAAAC;QAAAC;QAAAJ;QAAAD;MACA;MACA;MACA;MACA;MACA;QACAM;MACA;MACA;QACAH;MACA;MACA;QACAC;MACA;MACA;QACAC;MACA;MACA;QACAJ;MACA;MACA;QACAD;MACA;MACA;QACAM;QACAH;QACAC;QACAC;QACAJ;QACAD;MACA;IACA;IACAO;MACA;MACA;MACA;MACA;MACA;MACA;QAAAC;QAAAC;QAAAC;QAAAC;QAAAC;QAAA/B;MACA;MACA;MACA;QACAgC;QACAC;MACA;MAAA;MACA;MACA;MACA;MACA;QAAAX;QAAAC;QAAAC;QAAAJ;QAAAD;QAAAe;QAAAC;QAAAC;MACA;MACA;MACA;MACA;MACA;QACAX;MACA;MAAA;MACA;QACAH;MACA;MAAA;MACA;QACAC;MACA;MAAA;MACA;QACAC;MACA;MAAA;MAEA;QACA;UACAJ;QACA;QAAA;QACA;UACAD;QACA;QAAA;MACA;QACA;UACAC;QACA;QAAA;QACA;UACAD;QACA;QAAA;MACA;MAAA;MAEAnB,WACAyB,+DACAH,iEACAC,6DACA,GACAC,+DACAJ,iEACAD,4DACA;MACA;QACAM;QACAH;QACAC;QACAC;QACAJ;QACAD;QACAnB;MACA;IACA;IACAqC;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;QACA;QACA;UACAC;QACA;UACAA;QACA;MACA;QACAA;MACA;MACA;IACA;IACAC;MAAA;MACA;QAAAvC;MACA;QAAAwC;QAAAC;MACA;MACA;MACA;QAAAnB;QAAAC;QAAAC;QAAAJ;QAAAD;MACA;MACAnB;MACAyB;MACAH;MACAC;MACAC;MACAJ;MACAD;MACAlB;QACAwB;QACAH;QACAC;QACAC;QACAJ;QACAD;MACA;MACAuB;MACAC;MACAC;MACAC;MACAC;MACAC;MACAN;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;MACAC;MACA;MACA;MACA;QACA;MACA;MACA;QACAA;QACAzC;QACAkC;MACA;IACA;IACAQ;MAAA;MACA;MACA;QAAAT;QAAAC;MACA;QAAAS;QAAAC;QAAAC;QAAAC;QAAAC;QAAAC;QAAAC;QAAAC;QAAAC;MACA;MACA;QAAAC;QAAAC;QAAAC;QAAAC;QAAAC;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;QACAC;QACAA;QACAA;QACA/D;QACAA;QACAA;QACA4C;QACA3C;QACA4C;QACA5C;QACA6C;QACA7C;MACA;MACA;QACAD;MACA;MAAA;MACA;QACA+D;QACAA;QACA;QACA/D;QACAA;QACA6C;QACA5C;QACA6C;QACA7C;MACA;MAAA;MACA;QACA8D;QACA;QACA/D;QACA8C;QACA7C;MACA;MAAA;MACA8C;MACAP;QACAC;QAAAC;QAAAC;QAAAC;QAAAC;QAAAC;MACA;MACA;MACA;QACA;MACA;MACA;QACAC;QACAzC;QACAkC;MACA;IAEA;EACA;AACA;AAAA,4B;;;;;;;;;;;;AClVA;AAAA;AAAA;AAAA;AAAm/C,CAAgB,y6CAAG,EAAC,C;;;;;;;;;;;ACAvgD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/w-picker/range-picker.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./range-picker.vue?vue&type=template&id=38968dfe&\"\nvar renderjs\nimport script from \"./range-picker.vue?vue&type=script&lang=js&\"\nexport * from \"./range-picker.vue?vue&type=script&lang=js&\"\nimport style0 from \"./range-picker.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/w-picker/range-picker.vue\"\nexport default component.exports","export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./range-picker.vue?vue&type=template&id=38968dfe&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./range-picker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./range-picker.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"w-picker-view\">\r\n\t\t<picker-view class=\"d-picker-view\" :indicator-style=\"itemHeight\" :value=\"pickVal\" @change=\"handlerChange\">\r\n\t\t\t<picker-view-column class=\"w-picker-flex2\">\r\n\t\t\t\t<view class=\"w-picker-item\" v-for=\"(item,index) in range.fyears\" :key=\"index\">{{item}}年</view>\r\n\t\t\t</picker-view-column>\r\n\t\t\t<picker-view-column class=\"w-picker-flex2\">\r\n\t\t\t\t<view class=\"w-picker-item\" v-for=\"(item,index) in range.fmonths\" :key=\"index\">{{item}}月</view>\r\n\t\t\t</picker-view-column>\r\n\t\t\t<picker-view-column class=\"w-picker-flex2\">\r\n\t\t\t\t<view class=\"w-picker-item\" v-for=\"(item,index) in range.fdays\" :key=\"index\">{{item}}日</view>\r\n\t\t\t</picker-view-column>\r\n\t\t\t<picker-view-column class=\"w-picker-flex1\">\r\n\t\t\t\t<view class=\"w-picker-item\">-</view>\r\n\t\t\t</picker-view-column>\r\n\t\t\t<picker-view-column class=\"w-picker-flex2\">\r\n\t\t\t\t<view class=\"w-picker-item\" v-for=\"(item,index) in range.tyears\" :key=\"index\">{{item}}年</view>\r\n\t\t\t</picker-view-column>\r\n\t\t\t<picker-view-column class=\"w-picker-flex2\">\r\n\t\t\t\t<view class=\"w-picker-item\" v-for=\"(item,index) in range.tmonths\" :key=\"index\">{{item}}月</view>\r\n\t\t\t</picker-view-column>\r\n\t\t\t<picker-view-column class=\"w-picker-flex2\">\r\n\t\t\t\t<view class=\"w-picker-item\" v-for=\"(item,index) in range.tdays\" :key=\"index\">{{item}}日</view>\r\n\t\t\t</picker-view-column>\r\n\t\t</picker-view>\r\n\t</view>\n</template>\n\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tpickVal:[],\r\n\t\t\t\trange:{},\r\n\t\t\t\tcheckObj:{}\r\n\t\t\t};\r\n\t\t},\r\n\t\tprops:{\r\n\t\t\titemHeight:{\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:\"44px\"\r\n\t\t\t},\r\n\t\t\tvalue:{\r\n\t\t\t\ttype:[String,Array],\r\n\t\t\t\tdefault(){\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcurrent:{//是否默认选中当前日期\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:false\r\n\t\t\t},\r\n\t\t\tstartYear:{\r\n\t\t\t\ttype:[String,Number],\r\n\t\t\t\tdefault:1970\r\n\t\t\t},\r\n\t\t\tendYear:{\r\n\t\t\t\ttype:[String,Number],\r\n\t\t\t\tdefault:new Date().getFullYear()\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch:{\r\n\t\t\tvalue(val){\r\n\t\t\t\tthis.initData();\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.initData();\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tformatNum(n){\r\n\t\t\t\treturn (Number(n)<10?'0'+Number(n):Number(n)+'');\r\n\t\t\t},\r\n\t\t\tcheckValue(value){\r\n\t\t\t\tlet strReg=/^\\d{4}-\\d{2}-\\d{2}$/,example=\"2020-04-03\";\r\n\t\t\t\tif(!strReg.test(value[0])||!strReg.test(value[1])){\r\n\t\t\t\t\tconsole.log(new Error(\"请传入与mode匹配的value值,例[\"+example+\",\"+example+\"]\"))\r\n\t\t\t\t}\r\n\t\t\t\treturn strReg.test(value[0])&&strReg.test(value[1]);\r\n\t\t\t},\r\n\t\t\tresetToData(fmonth,fday,tyear,tmonth){\r\n\t\t\t\tlet range=this.range;\r\n\t\t\t\tlet tmonths=[],tdays=[];\r\n\t\t\t\tlet yearFlag=tyear!=range.tyears[0];\r\n\t\t\t\tlet monthFlag=tyear!=range.tyears[0]||tmonth!=range.tmonths[0];\r\n\t\t\t\tlet ttotal=new Date(tyear,tmonth,0).getDate();\r\n\t\t\t\tfor(let i=yearFlag?1:fmonth*1;i<=12;i++){\r\n\t\t\t\t\ttmonths.push(this.formatNum(i))\r\n\t\t\t\t}\r\n\t\t\t\tfor(let i=monthFlag?1:fday*1;i<=ttotal;i++){\r\n\t\t\t\t\ttdays.push(this.formatNum(i))\r\n\t\t\t\t}\r\n\t\t\t\treturn{\r\n\t\t\t\t\ttmonths,\r\n\t\t\t\t\ttdays\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tresetData(fyear,fmonth,fday,tyear,tmonth){\r\n\t\t\t\tlet fyears=[],fmonths=[],fdays=[],tyears=[],tmonths=[],tdays=[];\r\n\t\t\t\tlet startYear=this.startYear;\r\n\t\t\t\tlet endYear=this.endYear;\r\n\t\t\t\tlet ftotal=new Date(fyear,fmonth,0).getDate();\r\n\t\t\t\tlet ttotal=new Date(tyear,tmonth,0).getDate();\r\n\t\t\t\tfor(let i=startYear*1;i<=endYear;i++){\r\n\t\t\t\t\tfyears.push(this.formatNum(i))\r\n\t\t\t\t}\r\n\t\t\t\tfor(let i=1;i<=12;i++){\r\n\t\t\t\t\tfmonths.push(this.formatNum(i))\r\n\t\t\t\t}\r\n\t\t\t\tfor(let i=1;i<=ftotal;i++){\r\n\t\t\t\t\tfdays.push(this.formatNum(i))\r\n\t\t\t\t}\r\n\t\t\t\tfor(let i=fyear*1;i<=endYear;i++){\r\n\t\t\t\t\ttyears.push(this.formatNum(i))\r\n\t\t\t\t}\r\n\t\t\t\tfor(let i=fmonth*1;i<=12;i++){\r\n\t\t\t\t\ttmonths.push(this.formatNum(i))\r\n\t\t\t\t}\r\n\t\t\t\tfor(let i=fday*1;i<=ttotal;i++){\r\n\t\t\t\t\ttdays.push(this.formatNum(i))\r\n\t\t\t\t}\r\n\t\t\t\treturn {\r\n\t\t\t\t\tfyears,\r\n\t\t\t\t\tfmonths,\r\n\t\t\t\t\tfdays,\r\n\t\t\t\t\ttyears,\r\n\t\t\t\t\ttmonths,\r\n\t\t\t\t\ttdays\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tgetData(dVal){\r\n\t\t\t\tlet start=this.startYear*1;\r\n\t\t\t\tlet end=this.endYear*1;\r\n\t\t\t\tlet value=dVal;\r\n\t\t\t\tlet flag=this.current;\r\n\t\t\t\tlet aToday=new Date();\r\n\t\t\t\tlet tYear,tMonth,tDay,tHours,tMinutes,tSeconds,pickVal=[];\r\n\t\t\t\tlet initstartDate=new Date(start.toString());\r\n\t\t\t\tlet endDate=new Date(end.toString());\r\n\t\t\t\tif(start>end){\r\n\t\t\t\t\tinitstartDate=new Date(end.toString());\r\n\t\t\t\t\tendDate=new Date(start.toString());\r\n\t\t\t\t};\r\n\t\t\t\tlet startYear=initstartDate.getFullYear();\r\n\t\t\t\tlet startMonth=initstartDate.getMonth()+1;\r\n\t\t\t\tlet endYear=endDate.getFullYear();\r\n\t\t\t\tlet fyears=[],fmonths=[],fdays=[],tyears=[],tmonths=[],tdays=[],returnArr=[],startDVal=[],endDVal=[];\r\n\t\t\t\tlet curMonth=flag?value[1]*1:(startDVal[1]*1+1);\r\n\t\t\t\tlet curMonth1=flag?value[5][1]*1:(value[5]*1+1);\r\n\t\t\t\tlet totalDays=new Date(value[0],value[1],0).getDate();\r\n\t\t\t\tlet totalDays1=new Date(value[4],value[5],0).getDate();\r\n\t\t\t\tfor(let s=startYear;s<=endYear;s++){\r\n\t\t\t\t\tfyears.push(this.formatNum(s));\r\n\t\t\t\t};\r\n\t\t\t\tfor(let m=1;m<=12;m++){\r\n\t\t\t\t\tfmonths.push(this.formatNum(m));\r\n\t\t\t\t};\r\n\t\t\t\tfor(let d=1;d<=totalDays;d++){\r\n\t\t\t\t\tfdays.push(this.formatNum(d));\r\n\t\t\t\t};\r\n\t\t\t\tfor(let s=value[0]*1;s<=endYear;s++){\r\n\t\t\t\t\ttyears.push(this.formatNum(s));\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\tif(value[4]*1>value[0]*1){\r\n\t\t\t\t\tfor(let m=1;m<=12;m++){\r\n\t\t\t\t\t\ttmonths.push(this.formatNum(m));\r\n\t\t\t\t\t};\r\n\t\t\t\t\tfor(let d=1;d<=totalDays1;d++){\r\n\t\t\t\t\t\ttdays.push(this.formatNum(d));\r\n\t\t\t\t\t};\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfor(let m=value[1]*1;m<=12;m++){\r\n\t\t\t\t\t\ttmonths.push(this.formatNum(m));\r\n\t\t\t\t\t};\r\n\t\t\t\t\tfor(let d=value[2]*1;d<=totalDays1;d++){\r\n\t\t\t\t\t\ttdays.push(this.formatNum(d));\r\n\t\t\t\t\t};\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\tpickVal=[\r\n\t\t\t\t\tfyears.indexOf(value[0])==-1?0:fyears.indexOf(value[0]),\r\n\t\t\t\t\tfmonths.indexOf(value[1])==-1?0:fmonths.indexOf(value[1]),\r\n\t\t\t\t\tfdays.indexOf(value[2])==-1?0:fdays.indexOf(value[2]),\r\n\t\t\t\t\t0,\r\n\t\t\t\t\ttyears.indexOf(value[4])==-1?0:tyears.indexOf(value[4]),\r\n\t\t\t\t\ttmonths.indexOf(value[5])==-1?0:tmonths.indexOf(value[5]),\r\n\t\t\t\t\ttdays.indexOf(value[6])==-1?0:tdays.indexOf(value[6])\r\n\t\t\t\t];\r\n\t\t\t\treturn {\r\n\t\t\t\t\tfyears,\r\n\t\t\t\t\tfmonths,\r\n\t\t\t\t\tfdays,\r\n\t\t\t\t\ttyears,\r\n\t\t\t\t\ttmonths,\r\n\t\t\t\t\ttdays,\r\n\t\t\t\t\tpickVal\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tgetDval(){\r\n\t\t\t\tlet value=this.value;\r\n\t\t\t\tlet fields=this.fields;\r\n\t\t\t\tlet dVal=null;\r\n\t\t\t\tlet aDate=new Date();\r\n\t\t\t\tlet fyear=this.formatNum(aDate.getFullYear());\r\n\t\t\t\tlet fmonth=this.formatNum(aDate.getMonth()+1);\r\n\t\t\t\tlet fday=this.formatNum(aDate.getDate());\r\n\t\t\t\tlet tyear=this.formatNum(aDate.getFullYear());\r\n\t\t\t\tlet tmonth=this.formatNum(aDate.getMonth()+1);\r\n\t\t\t\tlet tday=this.formatNum(aDate.getDate());\r\n\t\t\t\tif(value&&value.length>0){\r\n\t\t\t\t\tlet flag=this.checkValue(value);\r\n\t\t\t\t\tif(!flag){\r\n\t\t\t\t\t\tdVal=[fyear,fmonth,fday,\"-\",tyear,tmonth,tday]\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tdVal=[...value[0].split(\"-\"),\"-\",...value[1].split(\"-\")];\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdVal=[fyear,fmonth,fday,\"-\",tyear,tmonth,tday]\r\n\t\t\t\t}\r\n\t\t\t\treturn dVal;\r\n\t\t\t},\r\n\t\t\tinitData(){\r\n\t\t\t\tlet range=[],pickVal=[];\r\n\t\t\t\tlet result=\"\",full=\"\",obj={};\r\n\t\t\t\tlet dVal=this.getDval();\r\n\t\t\t\tlet dateData=this.getData(dVal);\r\n\t\t\t\tlet fyears=[],fmonths=[],fdays=[],tyears=[],tmonths=[],tdays=[];\r\n\t\t\t\tlet fyear,fmonth,fday,tyear,tmonth,tday;\r\n\t\t\t\tpickVal=dateData.pickVal;\r\n\t\t\t\tfyears=dateData.fyears;\r\n\t\t\t\tfmonths=dateData.fmonths;\r\n\t\t\t\tfdays=dateData.fdays;\r\n\t\t\t\ttyears=dateData.tyears;\r\n\t\t\t\ttmonths=dateData.tmonths;\r\n\t\t\t\ttdays=dateData.tdays;\r\n\t\t\t\trange={\r\n\t\t\t\t\tfyears,\r\n\t\t\t\t\tfmonths,\r\n\t\t\t\t\tfdays,\r\n\t\t\t\t\ttyears,\r\n\t\t\t\t\ttmonths,\r\n\t\t\t\t\ttdays,\r\n\t\t\t\t}\r\n\t\t\t\tfyear=range.fyears[pickVal[0]];\r\n\t\t\t\tfmonth=range.fmonths[pickVal[1]];\r\n\t\t\t\tfday=range.fdays[pickVal[2]];\r\n\t\t\t\ttyear=range.tyears[pickVal[4]];\r\n\t\t\t\ttmonth=range.tmonths[pickVal[5]];\r\n\t\t\t\ttday=range.tdays[pickVal[6]];\r\n\t\t\t\tobj={\r\n\t\t\t\t\tfyear,\r\n\t\t\t\t\tfmonth,\r\n\t\t\t\t\tfday,\r\n\t\t\t\t\ttyear,\r\n\t\t\t\t\ttmonth,\r\n\t\t\t\t\ttday\r\n\t\t\t\t}\r\n\t\t\t\tresult=`${fyear+'-'+fmonth+'-'+fday+'至'+tyear+'-'+tmonth+'-'+tday}`;\r\n\t\t\t\tthis.range=range;\r\n\t\t\t\tthis.checkObj=obj;\r\n\t\t\t\tthis.$nextTick(()=>{\r\n\t\t\t\t\tthis.pickVal=pickVal;\r\n\t\t\t\t});\r\n\t\t\t\tthis.$emit(\"change\",{\r\n\t\t\t\t\tresult:result,\r\n\t\t\t\t\tvalue:result.split(\"至\"),\r\n\t\t\t\t\tobj:obj\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\thandlerChange(e){\r\n\t\t\t\tlet arr=[...e.detail.value];\r\n\t\t\t\tlet result=\"\",full=\"\",obj={};\r\n\t\t\t\tlet year=\"\",month=\"\",day=\"\",hour=\"\",minute=\"\",second=\"\",note=[],province,city,area;\r\n\t\t\t\tlet checkObj=this.checkObj;\r\n\t\t\t\tlet days=[],months=[],endYears=[],endMonths=[],endDays=[],startDays=[];\r\n\t\t\t\tlet mode=this.mode;\r\n\t\t\t\tlet col1,col2,col3,d,a,h,m;\r\n\t\t\t\tlet xDate=new Date().getTime();\r\n\t\t\t\tlet range=this.range;\r\n\t\t\t\tlet fyear=range.fyears[arr[0]]||range.fyears[range.fyears.length-1];\r\n\t\t\t\tlet fmonth=range.fmonths[arr[1]]||range.fmonths[range.fmonths.length-1];\r\n\t\t\t\tlet fday=range.fdays[arr[2]]||range.fdays[range.fdays.length-1];\r\n\t\t\t\tlet tyear=range.tyears[arr[4]]||range.tyears[range.tyears.length-1];\r\n\t\t\t\tlet tmonth=range.tmonths[arr[5]]||range.tmonths[range.tmonths.length-1];\r\n\t\t\t\tlet tday=range.tdays[arr[6]]||range.tdays[range.tdays.length-1];\r\n\t\t\t\tlet resetData=this.resetData(fyear,fmonth,fday,tyear,tmonth);\r\n\t\t\t\tif(fyear!=checkObj.fyear||fmonth!=checkObj.fmonth||fday!=checkObj.fday){\r\n\t\t\t\t\tarr[4]=0;\r\n\t\t\t\t\tarr[5]=0;\r\n\t\t\t\t\tarr[6]=0;\r\n\t\t\t\t\trange.tyears=resetData.tyears;\r\n\t\t\t\t\trange.tmonths=resetData.tmonths;\r\n\t\t\t\t\trange.tdays=resetData.tdays;\r\n\t\t\t\t\ttyear=range.tyears[0];\r\n\t\t\t\t\tcheckObj.tyears=range.tyears[0];\r\n\t\t\t\t\ttmonth=range.tmonths[0];\r\n\t\t\t\t\tcheckObj.tmonths=range.tmonths[0];\r\n\t\t\t\t\ttday=range.tdays[0];\r\n\t\t\t\t\tcheckObj.tdays=range.tdays[0];\r\n\t\t\t\t}\r\n\t\t\t\tif(fyear!=checkObj.fyear||fmonth!=checkObj.fmonth){\r\n\t\t\t\t\trange.fdays=resetData.fdays;\r\n\t\t\t\t};\r\n\t\t\t\tif(tyear!=checkObj.tyear){\r\n\t\t\t\t\tarr[5]=0;\r\n\t\t\t\t\tarr[6]=0;\r\n\t\t\t\t\tlet toData=this.resetToData(fmonth,fday,tyear,tmonth);\r\n\t\t\t\t\trange.tmonths=toData.tmonths;\r\n\t\t\t\t\trange.tdays=toData.tdays;\r\n\t\t\t\t\ttmonth=range.tmonths[0];\r\n\t\t\t\t\tcheckObj.tmonths=range.tmonths[0];\r\n\t\t\t\t\ttday=range.tdays[0];\r\n\t\t\t\t\tcheckObj.tdays=range.tdays[0];\r\n\t\t\t\t};\r\n\t\t\t\tif(tmonth!=checkObj.tmonth){\r\n\t\t\t\t\tarr[6]=0;\r\n\t\t\t\t\tlet toData=this.resetToData(fmonth,fday,tyear,tmonth);\r\n\t\t\t\t\trange.tdays=toData.tdays;\r\n\t\t\t\t\ttday=range.tdays[0];\r\n\t\t\t\t\tcheckObj.tdays=range.tdays[0];\r\n\t\t\t\t};\r\n\t\t\t\tresult=`${fyear+'-'+fmonth+'-'+fday+'至'+tyear+'-'+tmonth+'-'+tday}`;\r\n\t\t\t\tobj={\r\n\t\t\t\t\tfyear,fmonth,fday,tyear,tmonth,tday\r\n\t\t\t\t}\r\n\t\t\t\tthis.checkObj=obj;\r\n\t\t\t\tthis.$nextTick(()=>{\r\n\t\t\t\t\tthis.pickVal=arr;\r\n\t\t\t\t})\r\n\t\t\t\tthis.$emit(\"change\",{\r\n\t\t\t\t\tresult:result,\r\n\t\t\t\t\tvalue:result.split(\"至\"),\r\n\t\t\t\t\tobj:obj\r\n\t\t\t\t})\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}\n</script>\n\n<style lang=\"scss\">\n\t@import \"./w-picker.css\";\n</style>\n","import mod from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./range-picker.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./range-picker.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1725332666471\n var cssReload = require(\"C:/Users/Administrator/Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |