global.webpackJsonp([29],{ /***/ 189: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _vue = __webpack_require__(1); var _vue2 = _interopRequireDefault(_vue); var _index = __webpack_require__(190); var _index2 = _interopRequireDefault(_index); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var app = new _vue2.default(_index2.default); app.$mount(); exports.default = { config: { navigationBarTitleText: '法律法规' } }; /***/ }), /***/ 190: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_index_vue__ = __webpack_require__(192); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_index_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_index_vue__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_dee696dc_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_mpvue_loader_lib_selector_type_template_index_0_index_vue__ = __webpack_require__(197); var disposed = false function injectStyle (ssrContext) { if (disposed) return __webpack_require__(191) } var normalizeComponent = __webpack_require__(0) /* script */ /* template */ /* styles */ var __vue_styles__ = injectStyle /* scopeId */ var __vue_scopeId__ = "data-v-dee696dc" /* 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___default.a, __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_dee696dc_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_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\\lawlist\\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-dee696dc", Component.options) } else { hotAPI.reload("data-v-dee696dc", Component.options) } module.hot.dispose(function (data) { disposed = true }) })()} /* harmony default export */ __webpack_exports__["default"] = (Component.exports); /***/ }), /***/ 191: /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }), /***/ 192: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = __webpack_require__(34); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // exports.default = { data: function data() { return { all_data_loaded: false, keywords: '', lib: '', changeOne: 0, lists: [], type: '', typeChild: '', title: '', pagenum: 0, pagesize: 20, keyTitle: '', keyContent: '', anyou: '', Fdate_b: '', Fdate_e: '', FGArray: [{ type: 'gjfl', title: '国家法律' }, { type: 'dffg', title: '地方法规' }, { type: 'lfzl', title: '立法资料' }, { type: 'sfzl', title: '司法资料' }], WsArray: [{ type: 'ms', title: '民事' }, { type: 'xs', title: '刑事' }, { type: 'xz', title: '行政' }, { type: 'zx', title: '执行' }, { type: 'pc', title: '赔偿' }, { type: 'zscq', title: '知识产权' }], AlArray: [{ type: 'ms', title: '民事' }, { type: 'xs', title: '刑事' }, { type: 'xz', title: '行政' }, { type: 'zx', title: '执行' }, { type: 'pc', title: '赔偿' }], loaded: false }; }, methods: { loadArticles: function loadArticles() { this.pagenum = 1; this.getList(this.pagenum); }, getList: function getList(pagenum) { var _this = this; this.keyContent = this.keywords; this.keyTitle = this.keywords; this.anyou = this.keywords; var path = ''; console.log(this.typeChild); var TypesOf = this.type; if (TypesOf == 'flfg') { if (this.typeChild == '') { this.typeChild = 'gjfl'; } path = 'reg/getLawsRegulationsList'; } else if (TypesOf == 'cpws') { path = 'reg/getLawReferee'; if (this.typeChild == '') { this.typeChild = 'ms'; } this.lib = 'cpws_cp'; } else if (TypesOf == 'cpal') { path = 'reg/getLawCase'; if (this.typeChild == '') { this.typeChild = 'ms'; } this.lib = 'cpws_al'; } if (this.typeChild == 'gjfl') { this.lib = 'zyfl'; } else if (this.typeChild == 'dffg') { this.lib = 'dffl'; } else if (this.typeChild == 'lfzl') { this.lib = 'lf'; } else if (this.typeChild == 'sfzl') { this.lib = 'sf'; } console.log(this.lib); wx.showLoading({ title: '正在加载' }); wx.request({ url: this.rootUrl + path, method: 'get', header: { 'content-type': 'application/x-www-form-urlencoded' }, data: { pagenum: ++this.pagenum, pagesize: this.pagesize, keyTitle: this.keyTitle, keyContent: this.keyContent, anyou: this.anyou, type: this.typeChild, Fdate_b: this.Fdate_b, Fdate_e: this.Fdate_e, sessionID: wx.getStorageSync('sessionID') }, success: function success(res) { if (res.statusCode == '500') { _this.service.getUnionId(_this.rootAvatar, _this.rootUrl).then(function (res) { console.log(res); _this.loadArticles(); }); } else { console.log(1, res); if (res.data.value.length > 0) { if (res.data.value.length < _this.pagesize) { _this.all_data_loaded = true; } else { _this.all_data_loaded = false; } } else { _this.all_data_loaded = true; } console.log(_this.pagenum); _this.setLawyerData(res.data.value); } }, fail: function fail(res) { console.log(res); } }); }, setLawyerData: function setLawyerData(arr) { var lists = [].concat((0, _toConsumableArray3.default)(this.lists), (0, _toConsumableArray3.default)(arr)); console.log(lists); console.log(this.lists); this.lists = []; this.lists = lists; this.loaded = true; wx.hideLoading(); }, checkedBox: function checkedBox(index, typeChild) { this.changeOne = index; this.typeChild = typeChild; this.lists = []; this.pagenum = 1; this.getList(this.pagenum); }, search: function search() { this.pagenum = 1; this.lists = []; this.getList(this.pagenum); } }, onLoad: function onLoad() { this.title = this.$root.$mp.query.title; this.type = this.$root.$mp.query.type; this.keywords = this.$root.$mp.query.keywords; console.log(this.keywords); wx.setNavigationBarTitle({ title: this.title }); }, onReachBottom: function onReachBottom() { if (!this.all_data_loaded) { var pagenum = ++this.pagenum; this.getList(pagenum); } }, onShow: function onShow() { this.loadArticles(); }, onUnload: function onUnload() { this.lists = []; this.typeChild = ''; this.keywords = ''; this.changeOne = 0; this.lib = ''; this.pagenum = 0; this.loaded = false; } }; /***/ }), /***/ 197: /***/ (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: "content" }, [_c('div', { staticClass: "search_box" }, [_c('input', { directives: [{ name: "model", rawName: "v-model", value: (_vm.keywords), expression: "keywords" }], staticClass: "search", attrs: { "placeholder": "请输入关键词...", "eventid": '0' }, domProps: { "value": (_vm.keywords) }, on: { "input": function($event) { if ($event.target.composing) { return; } _vm.keywords = $event.target.value } } })]), _vm._v(" "), _c('span', { staticClass: "search_btn", attrs: { "eventid": '1' }, on: { "click": _vm.search } }, [_vm._v("搜索")]), _vm._v(" "), _c('div', { staticClass: "clear" }), _vm._v(" "), (_vm.type == 'flfg') ? _c('div', { staticClass: "tab_box" }, _vm._l((_vm.FGArray), function(v, i) { return _c('div', { key: i, staticClass: "tab ", class: { checked: _vm.changeOne == i }, attrs: { "eventid": '2-' + i }, on: { "click": function($event) { _vm.checkedBox(i, v.type) } } }, [_vm._v(_vm._s(v.title))]) })) : _vm._e(), _vm._v(" "), (_vm.type == 'cpal') ? _c('div', { staticClass: "tab_box" }, _vm._l((_vm.AlArray), function(v, i) { return _c('div', { key: i, staticClass: "tab5 ", class: { checked: _vm.changeOne == i }, attrs: { "eventid": '3-' + i }, on: { "click": function($event) { _vm.checkedBox(i, v.type) } } }, [_vm._v(_vm._s(v.title))]) })) : _vm._e(), _vm._v(" "), (_vm.type == 'cpws') ? _c('div', { staticClass: "tab_box" }, _vm._l((_vm.WsArray), function(v, i) { return _c('div', { key: i, staticClass: "tab6 ", class: { checked: _vm.changeOne == i }, attrs: { "eventid": '4-' + i }, on: { "click": function($event) { _vm.checkedBox(i, v.type) } } }, [_vm._v(_vm._s(v.title))]) })) : _vm._e(), _vm._v(" "), _c('div', { staticClass: "list_box" }, _vm._l((_vm.lists), function(v, i) { return _c('navigator', { key: i, attrs: { "url": '../lawinfo/main?title=' + _vm.title + '&gid=' + v.itemgid + '&lib=' + _vm.lib } }, [_c('div', { staticClass: "list" }, [(v.itemvalue == '' || v.itemvalue == null) ? _c('p', [_c('rich-text', { attrs: { "nodes": v.itemtitle, "mpcomid": '0-' + i } })], 1) : _c('p', [_c('rich-text', { attrs: { "nodes": v.itemvalue, "mpcomid": '1-' + i } })], 1), _vm._v(" "), _c('span', [_vm._v(_vm._s(v.itemftitle))])], 1)]) })), _vm._v(" "), (_vm.lists.length > 0 && !_vm.all_data_loaded) ? _c('div', { staticClass: "three-dot-box" }, [_c('div', { staticClass: "dot-flashing" })]) : (_vm.lists.length > 0) ? _c('div', { staticClass: "all-load-foot" }, [_vm._v("已经到底了……")]) : _vm._e()]) } 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-dee696dc", esExports) } } /***/ }) },[189]); //# sourceMappingURL=main.js.map