main.js 8.29 KB
global.webpackJsonp([30],{

/***/ 184:
/***/ (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__(185);

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: '法律详情'
  }
};

/***/ }),

/***/ 185:
/***/ (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__(187);
/* 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_470594a2_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__(188);
var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(186)
}
var normalizeComponent = __webpack_require__(0)
/* script */

/* template */

/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-470594a2"
/* 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_470594a2_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\\lawinfo\\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-470594a2", Component.options)
  } else {
    hotAPI.reload("data-v-470594a2", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


/***/ }),

/***/ 186:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 187:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
//
//
//
//
//
//
//
//
//
//
//
//

exports.default = {
  data: function data() {
    return {
      typeChild: '',
      title: '',
      lists: [],
      loaded: false
    };
  },

  methods: {
    loadArticles: function loadArticles() {
      var _this = this;

      wx.showLoading({ title: '正在加载' });
      wx.request({
        url: this.rootUrl + '/reg/getLawsRegulationsContent',
        method: 'get',
        header: { 'content-type': 'application/x-www-form-urlencoded' },
        data: {
          gid: this.gid,
          lib: this.lib,
          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(res);
            _this.lists = [];
            _this.lists = res.data.value;
            console.log(res.data.value);
            _this.loaded = true;
            wx.hideLoading();
          }
        },
        fail: function fail(res) {
          console.log(res);
        }
      });
    },
    getList: function getList() {
      var _this2 = this;

      var path = '';
      if (this.typeChild == 'gjfl') {
        this.lib = 'zyfl';
      } else if (this.typeChild == 'gjfg') {
        this.lib = 'dffl';
      } else if (this.typeChild == 'lfzl') {
        this.lib = 'lf';
      } else if (this.typeChild == 'sfzl') {
        this.lib = 'sf';
      }
      var TypesOf = this.type;
      if (TypesOf == 'flfg') {
        this.typeChild = 'gjfg';
        path = 'reg/getLawsRegulationsList';
      } else if (TypesOf == 'cpws') {
        path = 'reg/getLawReferee';
        this.typeChild = 'ms';
        this.lib = 'cpws_cp';
      } else if (TypesOf == 'cpal') {
        path = 'reg/getLawCase';
        this.typeChild = 'ms';
        this.lib = 'cpws_al';
      }
      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') {
            _this2.service.getUnionId(_this2.rootAvatar, _this2.rootUrl).then(function (res) {
              console.log(res);
              _this2.loadArticles();
            });
          } else {
            console.log(1, res);
            _this2.lists = [];
            _this2.lists = res.data.value;
            _this2.loaded = true;
            wx.hideLoading();
          }
        },
        fail: function fail(res) {
          console.log(res);
        }
      });
    },

    checkedBox: function checkedBox(index, typeChild) {
      this.changeOne = index;
      this.typeChild = typeChild;
      this.getList();
    },
    search: function search() {
      this.keyContent = this.keywords;
      this.keyTitle = this.keywords;
      this.anyou = this.keywords;
      this.getList();
    }
  },
  onLoad: function onLoad() {
    this.gid = this.$root.$mp.query.gid;
    this.lib = this.$root.$mp.query.lib;
    this.title = this.$root.$mp.query.title;
    wx.setNavigationBarTitle({ title: this.title });
  },
  onShow: function onShow() {
    this.loadArticles();
  },
  onUnload: function onUnload() {
    this.lists = [];
    this.loaded = false;
  }
};

/***/ }),

/***/ 188:
/***/ (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"
  }, _vm._l((_vm.lists), function(v, i) {
    return _c('div', {
      key: i
    }, [_c('p', {
      staticClass: "title"
    }, [_vm._v(_vm._s(v.itemtitle))]), _vm._v(" "), _c('p', {
      staticClass: "date"
    }, [_vm._v("公布日期:" + _vm._s(v.fdatetime))]), _vm._v(" "), _c('div', {
      staticClass: "info"
    }, [_c('rich-text', {
      attrs: {
        "nodes": v.itemcontent,
        "mpcomid": '0-' + i
      }
    })], 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-470594a2", esExports)
  }
}

/***/ })

},[184]);
//# sourceMappingURL=main.js.map