text: require("../../common/manifest.js")
  require("../../common/vendor.js")
  global.webpackJsonpMpvue([2],{
  
  /***/ 125:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__index__ = __webpack_require__(126);
  
  
  
  var app = new __WEBPACK_IMPORTED_MODULE_0_vue___default.a(__WEBPACK_IMPORTED_MODULE_1__index__["a" /* default */]);
  app.$mount();
  
  /***/ }),
  
  /***/ 126:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_index_vue__ = __webpack_require__(128);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_bae5bfaa_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_fileExt_template_wxml_script_js_style_wxss_platform_wx_node_modules_mpvue_loader_lib_selector_type_template_index_0_index_vue__ = __webpack_require__(133);
  var disposed = false
  function injectStyle (ssrContext) {
    if (disposed) return
    __webpack_require__(127)
  }
  var normalizeComponent = __webpack_require__(0)
  /* script */
  
  /* template */
  
  /* styles */
  var __vue_styles__ = injectStyle
  /* scopeId */
  var __vue_scopeId__ = "data-v-bae5bfaa"
  /* moduleIdentifier (server only) */
  var __vue_module_identifier__ = null
  var Component = normalizeComponent(
    __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_index_vue__["a" /* default */],
    __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_bae5bfaa_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_fileExt_template_wxml_script_js_style_wxss_platform_wx_node_modules_mpvue_loader_lib_selector_type_template_index_0_index_vue__["a" /* default */],
    __vue_styles__,
    __vue_scopeId__,
    __vue_module_identifier__
  )
  Component.options.__file = "src\\pages\\home\\index.vue"
  if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key.substr(0, 2) !== "__"})) {console.error("named exports are not supported in *.vue files.")}
  if (Component.options.functional) {console.error("[vue-loader] index.vue: functional components are not supported with templates, they should use render functions.")}
  
  /* hot reload */
  if (false) {(function () {
    var hotAPI = require("vue-hot-reload-api")
    hotAPI.install(require("vue"), false)
    if (!hotAPI.compatible) return
    module.hot.accept()
    if (!module.hot.data) {
      hotAPI.createRecord("data-v-bae5bfaa", Component.options)
    } else {
      hotAPI.reload("data-v-bae5bfaa", Component.options)
    }
    module.hot.dispose(function (data) {
      disposed = true
    })
  })()}
  
  /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
  
  
  /***/ }),
  
  /***/ 127:
  /***/ (function(module, exports) {
  
  // removed by extract-text-webpack-plugin
  
  /***/ }),
  
  /***/ 128:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__ = __webpack_require__(5);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator__ = __webpack_require__(6);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator__);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_SearchBar__ = __webpack_require__(129);
  
  
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  
  // 导入搜索框组件
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    components: {
      SearchBar: __WEBPACK_IMPORTED_MODULE_2__common_SearchBar__["a" /* default */]
    },
    data: function data() {
      return {
        swipers: [], // 轮播图
        courses: [], // 推荐课程
        videos: [] // 热门视频
      };
    },
    onLoad: function onLoad() {
      this.getSwipersData();
  
      this.getRecommendCoursesData();
  
      this.getHotVideosData();
    },
  
    methods: {
      // 获取轮播图数据
      getSwipersData: function getSwipersData() {
        var _this = this;
  
        return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default()( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee() {
          var res;
          return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee$(_context) {
            while (1) {
              switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return _this.$axios.get('home/swipers');
  
                case 2:
                  res = _context.sent;
  
  
                  _this.swipers = res.data.message;
  
                case 4:
                case 'end':
                  return _context.stop();
              }
            }
          }, _callee, _this);
        }))();
      },
  
      // 获取推荐课程数据
      getRecommendCoursesData: function getRecommendCoursesData() {
        var _this2 = this;
  
        return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default()( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee2() {
          var res;
          return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee2$(_context2) {
            while (1) {
              switch (_context2.prev = _context2.next) {
                case 0:
                  _context2.next = 2;
                  return _this2.$axios.get('home/course');
  
                case 2:
                  res = _context2.sent;
  
  
                  _this2.courses = res.data.message;
  
                case 4:
                case 'end':
                  return _context2.stop();
              }
            }
          }, _callee2, _this2);
        }))();
      },
  
      // 获取热门视频
      getHotVideosData: function getHotVideosData() {
        var _this3 = this;
  
        return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default()( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee3() {
          var res;
          return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee3$(_context3) {
            while (1) {
              switch (_context3.prev = _context3.next) {
                case 0:
                  _context3.next = 2;
                  return _this3.$axios.get('home/video');
  
                case 2:
                  res = _context3.sent;
  
  
                  _this3.videos = res.data.message;
  
                case 4:
                case 'end':
                  return _context3.stop();
              }
            }
          }, _callee3, _this3);
        }))();
      },
  
      // 切换到课程页面
      goToCoursePage: function goToCoursePage() {
        wx.switchTab({ url: '/pages/course/main' });
      },
  
      // 跳转到课程详情页面
      goToCourseDetail: function goToCourseDetail(id) {
        wx.navigateTo({ url: '/pages/course-detail/main?id=' + id });
      }
    }
  });
  
  /***/ }),
  
  /***/ 129:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_SearchBar_vue__ = __webpack_require__(131);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_594a2160_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_fileExt_template_wxml_script_js_style_wxss_platform_wx_node_modules_mpvue_loader_lib_selector_type_template_index_0_SearchBar_vue__ = __webpack_require__(132);
  var disposed = false
  function injectStyle (ssrContext) {
    if (disposed) return
    __webpack_require__(130)
  }
  var normalizeComponent = __webpack_require__(0)
  /* script */
  
  /* template */
  
  /* styles */
  var __vue_styles__ = injectStyle
  /* scopeId */
  var __vue_scopeId__ = "data-v-594a2160"
  /* moduleIdentifier (server only) */
  var __vue_module_identifier__ = null
  var Component = normalizeComponent(
    __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_SearchBar_vue__["a" /* default */],
    __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_594a2160_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_fileExt_template_wxml_script_js_style_wxss_platform_wx_node_modules_mpvue_loader_lib_selector_type_template_index_0_SearchBar_vue__["a" /* default */],
    __vue_styles__,
    __vue_scopeId__,
    __vue_module_identifier__
  )
  Component.options.__file = "src\\pages\\common\\SearchBar.vue"
  if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key.substr(0, 2) !== "__"})) {console.error("named exports are not supported in *.vue files.")}
  if (Component.options.functional) {console.error("[vue-loader] SearchBar.vue: functional components are not supported with templates, they should use render functions.")}
  
  /* hot reload */
  if (false) {(function () {
    var hotAPI = require("vue-hot-reload-api")
    hotAPI.install(require("vue"), false)
    if (!hotAPI.compatible) return
    module.hot.accept()
    if (!module.hot.data) {
      hotAPI.createRecord("data-v-594a2160", Component.options)
    } else {
      hotAPI.reload("data-v-594a2160", Component.options)
    }
    module.hot.dispose(function (data) {
      disposed = true
    })
  })()}
  
  /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
  
  
  /***/ }),
  
  /***/ 130:
  /***/ (function(module, exports) {
  
  // removed by extract-text-webpack-plugin
  
  /***/ }),
  
  /***/ 131:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    props: {
      placeholder: {
        type: String,
        default: '搜索'
      }
    },
    methods: {
      search: function search() {
        wx.navigateTo({
          url: '/pages/search/main'
        });
      }
    }
  });
  
  /***/ }),
  
  /***/ 132:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
    return _c('view', {
      staticClass: "weui-search-bar__box"
    }, [_c('icon', {
      staticClass: "weui-icon-search_in-box",
      attrs: {
        "type": "search",
        "color": "#ff8d44",
        "size": "14"
      }
    }), _vm._v(" "), _c('view', {
      staticClass: "weui-search-bar__input",
      attrs: {
        "eventid": '0'
      },
      on: {
        "click": _vm.search
      }
    }, [_c('text', [_vm._v(_vm._s(_vm.placeholder))])])], 1)
  }
  var staticRenderFns = []
  render._withStripped = true
  var esExports = { render: render, staticRenderFns: staticRenderFns }
  /* harmony default export */ __webpack_exports__["a"] = (esExports);
  if (false) {
    module.hot.accept()
    if (module.hot.data) {
       require("vue-hot-reload-api").rerender("data-v-594a2160", esExports)
    }
  }
  
  /***/ }),
  
  /***/ 133:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
    return _c('div', {
      staticClass: "home-container"
    }, [_c('search-bar', {
      attrs: {
        "placeholder": "请输入课程的名称",
        "mpcomid": '0'
      }
    }), _vm._v(" "), _c('swiper', {
      attrs: {
        "indicator-dots": "",
        "circular": "",
        "autoplay": "",
        "indicator-active-color": "#fff",
        "interval": 3000
      }
    }, _vm._l((_vm.swipers), function(item, index) {
      return _c('navigator', {
        key: item.id,
        attrs: {
          "url": '/pages/course-detail/main?id=' + item.course_id
        }
      }, [_c('swiper-item', {
        attrs: {
          "mpcomid": '1_' + index
        }
      }, [_c('image', {
        attrs: {
          "src": item.img_url
        }
      })])], 1)
    })), _vm._v(" "), _c('div', [_c('div', {
      staticClass: "tips"
    }, [_c('p', [_vm._v("推荐课程")]), _vm._v(" "), _c('img', {
      attrs: {
        "src": "/static/images/arrow@2x.png",
        "alt": "",
        "eventid": '0'
      },
      on: {
        "click": _vm.goToCoursePage
      }
    })], 1), _vm._v(" "), _c('scroll-view', {
      staticClass: "course-container",
      attrs: {
        "scroll-x": ""
      }
    }, _vm._l((_vm.courses), function(item, index) {
      return _c('navigator', {
        key: item.id,
        staticClass: "course-item",
        attrs: {
          "url": '/pages/course-detail/main?id=' + item.relation_id
        }
      }, [_c('img', {
        attrs: {
          "src": item.icon,
          "alt": ""
        }
      })])
    }))], 1), _vm._v(" "), _c('div', [_c('div', {
      staticClass: "tips"
    }, [_c('p', [_vm._v("热门视频")]), _vm._v(" "), _c('img', {
      attrs: {
        "src": "/static/images/arrow@2x.png",
        "alt": "",
        "eventid": '1'
      },
      on: {
        "click": function($event) {
          _vm.goToCourseDetail(3)
        }
      }
    })], 1), _vm._v(" "), _c('div', {
      staticClass: "hot-video"
    }, _vm._l((_vm.videos), function(item, index) {
      return _c('navigator', {
        key: item.id,
        staticClass: "video-item",
        attrs: {
          "url": '/pages/course-detail/main?id=' + item.course_id
        }
      }, [_c('img', {
        attrs: {
          "src": item.cover_photo_url,
          "alt": ""
        }
      }), _vm._v(" "), _c('p', {
        staticClass: "title"
      }, [_vm._v(_vm._s(item.name))]), _vm._v(" "), _c('p', {
        staticClass: "subtitle"
      }, [_vm._v(_vm._s(item.view_count) + "人已观看")])], 1)
    }))])], 1)
  }
  var staticRenderFns = []
  render._withStripped = true
  var esExports = { render: render, staticRenderFns: staticRenderFns }
  /* harmony default export */ __webpack_exports__["a"] = (esExports);
  if (false) {
    module.hot.accept()
    if (module.hot.data) {
       require("vue-hot-reload-api").rerender("data-v-bae5bfaa", esExports)
    }
  }
  
  /***/ })
  
  },[125]);