main.js 7.98 KB
global.webpackJsonp([20],{

/***/ 253:
/***/ (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__(254);

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: '我的消息'
  }
};

/***/ }),

/***/ 254:
/***/ (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__(256);
/* 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_1f47307a_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__(257);
var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(255)
}
var normalizeComponent = __webpack_require__(0)
/* script */

/* template */

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

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


/***/ }),

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

// removed by extract-text-webpack-plugin

/***/ }),

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

"use strict";


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

var _NoData = __webpack_require__(8);

var _NoData2 = _interopRequireDefault(_NoData);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = {
  components: { NoData: _NoData2.default },
  data: function data() {
    return {
      lists: [],
      loaded: false,
      hasMessage: false,
      number: '',
      leaveUrl: '../leaveInfo/main?id=',
      consultantUrl: '../questiondetail/main?cwxid=',
      sysNewUrl: '../mynewsInfo/main?id=',
      substitute: '../substituteInfo/main?id='
    };
  },

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

      this.loaded = false;
      wx.request({
        url: this.rootUrl + 'message/getLawMessage',
        method: 'get',
        data: { sessionID: wx.getStorageSync('sessionID') },
        success: function success(res) {
          if (res.data.length > 0) {
            var ruselt = res.data;
            ruselt.forEach(function (v, i) {
              if (v.data.createDate != null && v.data.createDate != '') {
                v.data.createDate = _this.service.correctTime(v.data.createDate, 'full');
              }
            });
            _this.lists = ruselt;
          } else {
            _this.loaded = true;
          }
        }
      });
    }
  },
  onShow: function onShow() {
    this.getLawMessage();
  },
  onUnload: function onUnload() {
    this.lists = [];
    this.hasMessage = false;
    this.number = '';
    // this.loaded = false;
  }
}; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/***/ }),

/***/ 257:
/***/ (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: "container"
  }, [_vm._l((_vm.lists), function(v, i) {
    return _c('div', {
      key: i
    }, [(v.key == 0) ? _c('navigator', {
      attrs: {
        "url": _vm.leaveUrl + v.data.linke_id + '&sysNewsId=' + v.data.id
      }
    }, [_c('div', {
      staticClass: "list"
    }, [_c('p', {
      staticClass: "type"
    }, [_vm._v("我的请假")]), _vm._v(" "), _c('p', [_vm._v("审批状态:" + _vm._s(v.data.content))]), _vm._v(" "), _c('span', [_vm._v(_vm._s(v.data.createDate))]), _vm._v(" "), (v.isView == 1) ? _c('div', {
      staticClass: "read"
    }) : _vm._e()], 1)]) : _vm._e(), _vm._v(" "), (v.key == 1) ? _c('navigator', {
      attrs: {
        "url": _vm.consultantUrl + v.data.linke_id + '&sysNewsId=' + v.data.id
      }
    }, [_c('div', {
      staticClass: "list"
    }, [_c('p', {
      staticClass: "type"
    }, [_vm._v("咨询我的")]), _vm._v(" "), _c('p', [_vm._v(_vm._s(v.data.title))]), _vm._v(" "), _c('span', [_vm._v(_vm._s(v.data.createDate))]), _c('span', {
      staticClass: "line"
    }, [_vm._v("|")]), _c('span', [_vm._v(_vm._s(v.data.wx_Name))]), _vm._v(" "), (v.isView == 1) ? _c('div', {
      staticClass: "read"
    }) : _vm._e()], 1)]) : _vm._e(), _vm._v(" "), (v.key == 2) ? _c('navigator', {
      attrs: {
        "url": _vm.sysNewUrl + v.data.id
      }
    }, [_c('div', {
      staticClass: "list"
    }, [_c('p', {
      staticClass: "type"
    }, [_vm._v("系统消息")]), _vm._v(" "), _c('p', [_vm._v(_vm._s(v.data.title))]), _vm._v(" "), _c('span', [_vm._v(_vm._s(v.data.createDate))]), _vm._v(" "), (v.isView == 1) ? _c('div', {
      staticClass: "read"
    }) : _vm._e()], 1)]) : _vm._e(), _vm._v(" "), (v.key == 4) ? _c('navigator', {
      attrs: {
        "url": _vm.substitute + v.data.linke_id + '&sysNewsId=' + v.data.id
      }
    }, [_c('div', {
      staticClass: "list"
    }, [_c('p', {
      staticClass: "type"
    }, [_vm._v("我的代班")]), _vm._v(" "), _c('p', [_vm._v("审批状态:" + _vm._s(v.data.content))]), _vm._v(" "), _c('span', [_vm._v(_vm._s(v.data.createDate))]), _vm._v(" "), (v.isView == 1) ? _c('div', {
      staticClass: "read"
    }) : _vm._e()], 1)]) : _vm._e()], 1)
  }), _vm._v(" "), (_vm.loaded && _vm.lists.length == 0) ? _c('NoData', {
    attrs: {
      "paddingTop": "182",
      "mpcomid": '0'
    }
  }) : _vm._e()], 2)
}
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-1f47307a", esExports)
  }
}

/***/ })

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