d-rili.js 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/d-rili/d-rili"],{
  2. /***/ 221:
  3. /*!*************************************************************************************!*\
  4. !*** C:/Users/Administrator/Desktop/yswc/wx-fensisiyu/components/d-rili/d-rili.vue ***!
  5. \*************************************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. __webpack_require__.r(__webpack_exports__);
  10. /* harmony import */ var _d_rili_vue_vue_type_template_id_43a621a4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./d-rili.vue?vue&type=template&id=43a621a4& */ 222);
  11. /* harmony import */ var _d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./d-rili.vue?vue&type=script&lang=js& */ 224);
  12. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  13. /* harmony import */ var _d_rili_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./d-rili.vue?vue&type=style&index=0&lang=scss& */ 226);
  14. /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);
  15. var renderjs
  16. /* normalize component */
  17. var component = Object(_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  18. _d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  19. _d_rili_vue_vue_type_template_id_43a621a4___WEBPACK_IMPORTED_MODULE_0__["render"],
  20. _d_rili_vue_vue_type_template_id_43a621a4___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  21. false,
  22. null,
  23. null,
  24. null,
  25. false,
  26. _d_rili_vue_vue_type_template_id_43a621a4___WEBPACK_IMPORTED_MODULE_0__["components"],
  27. renderjs
  28. )
  29. component.options.__file = "components/d-rili/d-rili.vue"
  30. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  31. /***/ }),
  32. /***/ 222:
  33. /*!********************************************************************************************************************!*\
  34. !*** C:/Users/Administrator/Desktop/yswc/wx-fensisiyu/components/d-rili/d-rili.vue?vue&type=template&id=43a621a4& ***!
  35. \********************************************************************************************************************/
  36. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  37. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38. "use strict";
  39. __webpack_require__.r(__webpack_exports__);
  40. /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_template_id_43a621a4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./d-rili.vue?vue&type=template&id=43a621a4& */ 223);
  41. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_template_id_43a621a4___WEBPACK_IMPORTED_MODULE_0__["render"]; });
  42. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_template_id_43a621a4___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
  43. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_template_id_43a621a4___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
  44. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_template_id_43a621a4___WEBPACK_IMPORTED_MODULE_0__["components"]; });
  45. /***/ }),
  46. /***/ 223:
  47. /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  48. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/Administrator/Desktop/yswc/wx-fensisiyu/components/d-rili/d-rili.vue?vue&type=template&id=43a621a4& ***!
  49. \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  50. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  51. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52. "use strict";
  53. __webpack_require__.r(__webpack_exports__);
  54. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
  55. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
  56. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
  57. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
  58. var components
  59. var render = function () {
  60. var _vm = this
  61. var _h = _vm.$createElement
  62. var _c = _vm._self._c || _h
  63. var l0 = true
  64. ? _vm.__map(_vm.weekList, function (item, index) {
  65. var $orig = _vm.__get_orig(item)
  66. var g0 = index == 0 || index == _vm.weekList.length - 1
  67. return {
  68. $orig: $orig,
  69. g0: g0,
  70. }
  71. })
  72. : undefined
  73. _vm.$mp.data = Object.assign(
  74. {},
  75. {
  76. $root: {
  77. l0: l0,
  78. },
  79. }
  80. )
  81. }
  82. var recyclableRender = false
  83. var staticRenderFns = []
  84. render._withStripped = true
  85. /***/ }),
  86. /***/ 224:
  87. /*!**************************************************************************************************************!*\
  88. !*** C:/Users/Administrator/Desktop/yswc/wx-fensisiyu/components/d-rili/d-rili.vue?vue&type=script&lang=js& ***!
  89. \**************************************************************************************************************/
  90. /*! no static exports found */
  91. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92. "use strict";
  93. __webpack_require__.r(__webpack_exports__);
  94. /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./d-rili.vue?vue&type=script&lang=js& */ 225);
  95. /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
  96. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  97. /* harmony default export */ __webpack_exports__["default"] = (_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
  98. /***/ }),
  99. /***/ 225:
  100. /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  101. !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/Administrator/Desktop/yswc/wx-fensisiyu/components/d-rili/d-rili.vue?vue&type=script&lang=js& ***!
  102. \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  103. /*! no static exports found */
  104. /***/ (function(module, exports, __webpack_require__) {
  105. "use strict";
  106. /* WEBPACK VAR INJECTION */(function(uni) {
  107. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  108. Object.defineProperty(exports, "__esModule", {
  109. value: true
  110. });
  111. exports.default = void 0;
  112. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 41));
  113. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 43));
  114. //
  115. //
  116. //
  117. //
  118. //
  119. //
  120. //
  121. //
  122. //
  123. //
  124. //
  125. //
  126. //
  127. //
  128. //
  129. //
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. //
  155. //
  156. //
  157. //
  158. //
  159. //
  160. //
  161. //
  162. //
  163. //
  164. //
  165. //
  166. //
  167. var _default = {
  168. data: function data() {
  169. return {
  170. weekList: ['', '周一', '周二', '周三', '周四', '周五', '周六'],
  171. // 月份数组【2020-08-01 2020-09-01 2020-10-01】
  172. slideDataList: [],
  173. // 月份数组的索引
  174. // slideDataListIndex: 1,
  175. year: 2020,
  176. month: 10,
  177. day: 10,
  178. dayList: [],
  179. start_time: '',
  180. // 月初的时间戳
  181. end_time: '',
  182. // 月末的时间戳
  183. swiperHeight: 0
  184. };
  185. },
  186. created: function created() {
  187. console.log('created');
  188. // var mySwiper = new Swiper('.swiper-container', {
  189. // autoHeight: true,
  190. // });
  191. this._onLoad();
  192. this.getElementHeight('.swiper-item ');
  193. },
  194. methods: {
  195. getElementHeight: function getElementHeight(element) {
  196. var _this = this;
  197. //一定要 this.$nextTick 完成之后在获取dom节点高度
  198. this.$nextTick(function () {
  199. var query = uni.createSelectorQuery().in(_this);
  200. query.select(element).boundingClientRect(function (data) {
  201. console.log('111', data.height);
  202. _this.swiperHeight = data.height;
  203. }).exec();
  204. });
  205. },
  206. _onLoad: function _onLoad() {
  207. var _this2 = this;
  208. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  209. return _regenerator.default.wrap(function _callee$(_context) {
  210. while (1) {
  211. switch (_context.prev = _context.next) {
  212. case 0:
  213. _context.next = 2;
  214. return _this2.initTime();
  215. case 2:
  216. _context.next = 4;
  217. return _this2._runMonth();
  218. case 4:
  219. case "end":
  220. return _context.stop();
  221. }
  222. }
  223. }, _callee);
  224. }))();
  225. },
  226. // 初始化时间
  227. initTime: function initTime() {
  228. var nowTimeData = this._getTimeNowApi();
  229. this.year = nowTimeData.year;
  230. this.month = nowTimeData.month;
  231. this.day = nowTimeData.day;
  232. // 今日时间为:2020-9-16
  233. console.log('今日时间为:' + this.year + '-' + this.month + '-' + this.day);
  234. },
  235. _runMonth: function _runMonth() {
  236. var _this3 = this;
  237. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  238. var dataWeek;
  239. return _regenerator.default.wrap(function _callee2$(_context2) {
  240. while (1) {
  241. switch (_context2.prev = _context2.next) {
  242. case 0:
  243. console.log('==============================================================');
  244. // 获取当前月的每一天的数据 1~31
  245. _context2.next = 3;
  246. return _this3.initApi();
  247. case 3:
  248. _context2.next = 5;
  249. return _this3._timeApi();
  250. case 5:
  251. console.log(_this3.start_time);
  252. console.log(_this3.end_time);
  253. // 更新记录
  254. // await this.onClickSignLog()
  255. _context2.next = 9;
  256. return _this3.getweek(_this3._getNowApi());
  257. case 9:
  258. dataWeek = _context2.sent;
  259. // console.log(this._getNowApi())
  260. _this3.slideDataList[0] = [];
  261. _this3.slideDataList[1] = dataWeek;
  262. _this3.slideDataList[2] = [];
  263. console.log(_this3.slideDataList);
  264. console.log('==============================================================');
  265. case 15:
  266. case "end":
  267. return _context2.stop();
  268. }
  269. }
  270. }, _callee2);
  271. }))();
  272. },
  273. _getTimeNowApi: function _getTimeNowApi() {
  274. // 初始化时间
  275. var date = new Date();
  276. var year = date.getFullYear();
  277. var month = parseInt(date.getMonth() + 1);
  278. var day = date.getDate();
  279. if (month < 10) {
  280. month = '0' + month;
  281. }
  282. if (day < 10) {
  283. day = '0' + day;
  284. }
  285. var returnData = {
  286. year: year,
  287. month: parseInt(month),
  288. day: day
  289. };
  290. return returnData;
  291. },
  292. // 滑动日历触发(左右滑动)
  293. // _onClickSlideApi(e) {
  294. // let current = e.detail.current
  295. // let oldIndex = this.slideDataListIndex
  296. // this.slideDataListIndex = current
  297. // if (oldIndex - current == -1 || oldIndex - current == 2) {
  298. // console.log('向右滑动前一个月')
  299. // if (this.month == 12) {
  300. // this.year = this.year + 1
  301. // this.month = 1
  302. // } else {
  303. // this.month = this.month + 1
  304. // }
  305. // } else {
  306. // console.log('向左滑动后退一个月')
  307. // if (this.month == 1) {
  308. // this.year = this.year - 1
  309. // this.month = 12
  310. // } else {
  311. // this.month = this.month - 1
  312. // }
  313. // }
  314. // this._runMonth()
  315. // },
  316. _getNowApi: function _getNowApi() {
  317. console.log('当前日期:' + this.year + '-' + this.month + '-' + this.day);
  318. var data = {
  319. Day: 1,
  320. Month: this.month,
  321. Year: this.year
  322. };
  323. console.log(data);
  324. return data;
  325. },
  326. // 获取当前月的每一天的数据
  327. initApi: function initApi() {
  328. this.dayList = this.createDayList(this.month, this.year);
  329. },
  330. //创建每个月日历数据,传入月份1号前面用null填充
  331. createDayList: function createDayList(month, year) {
  332. var count = this.getDayNum(month, year),
  333. _week = new Date(year + '/' + month + '/1').getDay();
  334. var list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28];
  335. for (var i = 29; i <= count; i++) {
  336. list.push(i);
  337. }
  338. for (var _i = 0; _i < _week; _i++) {
  339. list.unshift(null);
  340. }
  341. return list;
  342. },
  343. //计算传入月份有多少天
  344. getDayNum: function getDayNum(month, year) {
  345. var dayNum = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
  346. if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
  347. dayNum[1] = 29;
  348. }
  349. return dayNum[month - 1];
  350. },
  351. // 传时间获取月初月末时间
  352. _timeApi: function _timeApi() {
  353. var startDate = this.year + '-' + this.month + '-' + this.day;
  354. var startData = this._timeMonthStartApi(startDate + ' 00:00:00');
  355. this.start_time = startData.time_int;
  356. var endData = this._timeMonthEndApi(startDate + ' 00:00:00');
  357. this.end_time = endData.time_int;
  358. },
  359. _timeMonthStartApi: function _timeMonthStartApi(timeDate) {
  360. var date = new Date(timeDate);
  361. date.setDate(1);
  362. var month = parseInt(date.getMonth() + 1);
  363. var day = date.getDate();
  364. if (month < 10) {
  365. month = '0' + month;
  366. }
  367. if (day < 10) {
  368. day = '0' + day;
  369. }
  370. var timeDateStart = date.getFullYear() + '-' + month + '-' + day;
  371. var returnData = {
  372. time_type: 'start_time',
  373. time_int: Date.parse(timeDateStart + ' 00:00:00') / 1000,
  374. time_date: timeDateStart,
  375. year: date.getFullYear(),
  376. month: month,
  377. day: day
  378. };
  379. return returnData;
  380. },
  381. _timeMonthEndApi: function _timeMonthEndApi(timeDate) {
  382. var endDate = new Date(timeDate);
  383. var currentMonth = endDate.getMonth();
  384. var nextMonth = ++currentMonth;
  385. var nextMonthFirstDay = new Date(endDate.getFullYear(), nextMonth, 1);
  386. var oneDay = 1000 * 60 * 60 * 24;
  387. var lastTime = new Date(nextMonthFirstDay - oneDay);
  388. var endMonth = parseInt(lastTime.getMonth() + 1);
  389. var endDay = lastTime.getDate();
  390. if (endMonth < 10) {
  391. endMonth = '0' + endMonth;
  392. }
  393. if (endDay < 10) {
  394. endDay = '0' + endDay;
  395. }
  396. var timeDateEnd = endDate.getFullYear() + '-' + endMonth + '-' + endDay;
  397. var returnData = {
  398. time_type: 'end_time',
  399. time_int: Date.parse(timeDateEnd + ' 00:00:00') / 1000,
  400. time_date: timeDateEnd,
  401. year: endDate.getFullYear(),
  402. month: endMonth,
  403. day: endDay
  404. };
  405. return returnData;
  406. },
  407. // 2020-08-01
  408. getweek: function getweek(date) {
  409. var weeks = [];
  410. var dates = this.getDates(date);
  411. // let len = Math.ceil(dates.weeks.length / 7);
  412. // for (let i = 0; i < len; i++) {
  413. // weeks.push(dates.weeks.slice(i * 7, 7 + (i * 7)));
  414. // }
  415. // dates.weeks = weeks
  416. return dates;
  417. },
  418. getDates: function getDates(date) {
  419. var dates = {
  420. year: date.Year,
  421. month: date.Month,
  422. firstDay: new Date(date.Year, date.Month, 1).getDay(),
  423. lastDay: new Date(date.Year, date.Month + 1, 0).getDay(),
  424. endDate: new Date(date.Year, date.Month + 1, 0).getDate(),
  425. weeks: []
  426. };
  427. //计算上月日期
  428. for (var i = dates.firstDay; i > 0; i--) {
  429. var dateinfo = {};
  430. dateinfo.date = new Date(date.Year, date.Month, -i + 1).getDate();
  431. dateinfo.isClick = false;
  432. dates.weeks.push(dateinfo);
  433. }
  434. //计算本月日期
  435. for (var _i2 = 1; _i2 <= new Date(date.Year, date.Month + 1, 0).getDate(); _i2++) {
  436. var nowisClick = true;
  437. var _dateinfo = {};
  438. _dateinfo.date = _i2;
  439. if (this.dateType == 'dateCustom') {
  440. nowisClick = false;
  441. if (this.dateCustom[dates.year] && this.dateCustom[dates.year][dates.month]) {
  442. for (var j = 0; j < this.dateCustom[dates.year][dates.month].length; j++) {
  443. if (this.dateCustom[dates.year][dates.month][j] == _i2) {
  444. nowisClick = true;
  445. }
  446. }
  447. }
  448. }
  449. _dateinfo.isClick = nowisClick;
  450. dates.weeks.push(_dateinfo);
  451. }
  452. //计算下月日期
  453. var len = 7 - dates.lastDay;
  454. if (42 - dates.weeks.length >= 7) {
  455. len += 7;
  456. }
  457. for (var _i3 = 1; _i3 < len; _i3++) {
  458. var _dateinfo2 = {};
  459. _dateinfo2.date = _i3;
  460. _dateinfo2.isClick = false;
  461. dates.weeks.push(_dateinfo2);
  462. }
  463. return dates;
  464. }
  465. }
  466. };
  467. exports.default = _default;
  468. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  469. /***/ }),
  470. /***/ 226:
  471. /*!***********************************************************************************************************************!*\
  472. !*** C:/Users/Administrator/Desktop/yswc/wx-fensisiyu/components/d-rili/d-rili.vue?vue&type=style&index=0&lang=scss& ***!
  473. \***********************************************************************************************************************/
  474. /*! no static exports found */
  475. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  476. "use strict";
  477. __webpack_require__.r(__webpack_exports__);
  478. /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./d-rili.vue?vue&type=style&index=0&lang=scss& */ 227);
  479. /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
  480. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  481. /* harmony default export */ __webpack_exports__["default"] = (_D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_d_rili_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
  482. /***/ }),
  483. /***/ 227:
  484. /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  485. !*** ./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/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/Administrator/Desktop/yswc/wx-fensisiyu/components/d-rili/d-rili.vue?vue&type=style&index=0&lang=scss& ***!
  486. \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  487. /*! no static exports found */
  488. /***/ (function(module, exports, __webpack_require__) {
  489. // extracted by mini-css-extract-plugin
  490. if(false) { var cssReload; }
  491. /***/ })
  492. }]);
  493. //# sourceMappingURL=../../../.sourcemap/mp-weixin/components/d-rili/d-rili.js.map
  494. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  495. 'components/d-rili/d-rili-create-component',
  496. {
  497. 'components/d-rili/d-rili-create-component':(function(module, exports, __webpack_require__){
  498. __webpack_require__('2')['createComponent'](__webpack_require__(221))
  499. })
  500. },
  501. [['components/d-rili/d-rili-create-component']]
  502. ]);