main.js 9.58 KB
global.webpackJsonp([7],{

/***/ 323:
/***/ (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__(324);

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: '搜索结果'
  }
};

/***/ }),

/***/ 324:
/***/ (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__(326);
/* 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_55c0b22e_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__(327);
var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(325)
}
var normalizeComponent = __webpack_require__(0)
/* script */

/* template */

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

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


/***/ }),

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

// removed by extract-text-webpack-plugin

/***/ }),

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

"use strict";


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

exports.default = {
  data: function data() {
    return {
      keywords: '',
      number: '',
      lib: '',
      changeOne: 0,
      lists: [],
      type: '',
      typeChild: '',
      title: '',
      pagenum: 1,
      pagesize: 10,
      keyTitle: '',
      keyContent: '',
      anyou: '',
      Fdate_b: '',
      Fdate_e: '',
      typeArray: [{ type: 'flfg', title: '法律法规' }, { type: 'cpws', title: '裁判文书' }, { type: 'cpal', title: '裁判案例' }],
      loaded: false
    };
  },

  methods: {
    loadArticles: function loadArticles() {},
    getList: function getList() {
      var _this = 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 typeChild = this.typeChild;
      if (typeChild == 'flfg') {
        // this.lib = 'cpws_cp'
        // this.typeChild = 'gjfg'
        path = 'reg/getLawsRegulationsList';
      } else if (typeChild == 'cpws') {
        path = 'reg/getLawReferee';
        // this.typeChild = 'ms'
        this.lib = 'cpws_cp';
      } else if (typeChild == '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') {
            _this.service.getUnionId(_this.rootAvatar, _this.rootUrl).then(function (res) {
              console.log(res);
              _this.loadArticles();
            });
          } else {
            console.log(1, res);
            _this.lists = [];
            _this.lists = res.data.value;
            _this.loaded = true;
            wx.hideLoading();
          }
        },
        fail: function fail(res) {
          console.log(res);
        }
      });
    },

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

/***/ }),

/***/ 327:
/***/ (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('navigator', {
    staticClass: "search_icon"
  }, [_c('img', {
    attrs: {
      "src": "/static/imgs/search_icon.png"
    }
  })])], 1), _vm._v(" "), _c('div', {
    staticClass: "history"
  }, [_c('p', [_c('span', [_vm._v("搜索历史:")]), _vm._v(" "), _c('img', {
    staticClass: "delete_icon",
    attrs: {
      "src": "/static/imgs/delete_icon.png"
    }
  })]), _vm._v(" "), _c('a', [_vm._v("危险驾驶")]), _vm._v(" "), _c('a', [_vm._v("交通事故")]), _vm._v(" "), _c('a', [_vm._v("离婚")])], 1), _vm._v(" "), _c('div', {
    staticClass: "tab"
  }, _vm._l((_vm.typeArray), function(v, i) {
    return _c('div', {
      key: i,
      staticClass: "tab_item",
      class: {
        checked: _vm.changeOne == i
      },
      attrs: {
        "eventid": '1-' + i
      },
      on: {
        "click": function($event) {
          _vm.checkedBox(i, v.type, v.title)
        }
      }
    }, [_vm._v(_vm._s(v.title)), _c('span', {
      staticClass: "number"
    }, [_vm._v("22")])])
  })), _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)])
  }))])
}
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-55c0b22e", esExports)
  }
}

/***/ })

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