14.js 12 KB
webpackJsonp([14],{

/***/ 322:
/* no static exports found */
/* all exports used */
/*!********************************!*\
  !*** ./src/pages/Contacts.vue ***!
  \********************************/
/***/ (function(module, exports, __webpack_require__) {


/* styles */
__webpack_require__(/*! !vue-style-loader!css-loader?sourceMap!../../~/vue-loader/lib/style-compiler/index?{"id":"data-v-cf2ce1b6","scoped":true,"hasInlineConfig":true}!../../~/vux-loader/src/after-less-loader.js!less-loader!../../~/vux-loader/src/style-loader.js!../../~/vue-loader/lib/selector?type=styles&index=0!./Contacts.vue */ 482)

var Component = __webpack_require__(/*! ../../~/vue-loader/lib/component-normalizer */ 2)(
  /* script */
  __webpack_require__(/*! !babel-loader!../../~/vux-loader/src/script-loader.js!../../~/vue-loader/lib/selector?type=script&index=0!./Contacts.vue */ 410),
  /* template */
  __webpack_require__(/*! !../../~/vue-loader/lib/template-compiler/index?{"id":"data-v-cf2ce1b6"}!../../~/vux-loader/src/before-template-compiler-loader.js!../../~/vux-loader/src/template-loader.js!../../~/vue-loader/lib/selector?type=template&index=0!./Contacts.vue */ 463),
  /* scopeId */
  "data-v-cf2ce1b6",
  /* cssModules */
  null
)
Component.options.__file = "D:\\Cassie-project\\netease-h5-demo\\src\\pages\\Contacts.vue"
if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
if (Component.options.functional) {console.error("[vue-loader] Contacts.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-cf2ce1b6", Component.options)
  } else {
    hotAPI.reload("data-v-cf2ce1b6", Component.options)
  }
})()}

module.exports = Component.exports


/***/ }),

/***/ 410:
/* no static exports found */
/* all exports used */
/*!********************************************************************************************************************************************!*\
  !*** ./~/babel-loader/lib!./~/vux-loader/src/script-loader.js!./~/vue-loader/lib/selector.js?type=script&index=0!./src/pages/Contacts.vue ***!
  \********************************************************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _format = __webpack_require__(/*! vux/src/tools/date/format.js */ 163);

var _format2 = _interopRequireDefault(_format);

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

exports.default = {
  data: function data() {
    return {
      model: navigator.userAgent.toLowerCase().indexOf('android') != -1 ? 0 : '2.6rem'
    };
  },

  computed: {
    sessionlist: function sessionlist() {
      var sessionlist = this.$store.state.sessionlist;
      var msgList = this.$store.state.msgs;
      var sysMsgList = [];
      for (var i = 0; i < sessionlist.length; i++) {
        if (sessionlist[i].scene == 'p2p' && sessionlist[i].lastMsg && sessionlist[i].lastMsg.type == 'custom') {
          var content = JSON.parse(sessionlist[i].lastMsg.content);
          if (content.type == 10) {
            if (msgList[sessionlist[i].id]) {
              for (var j = 0; j < msgList[sessionlist[i].id].length; j++) {
                sysMsgList.push(JSON.parse(msgList[sessionlist[i].id][j].content));
              }
            }
          }
        }
      }
      for (var _i = 0; _i < sysMsgList.length; _i++) {
        sysMsgList[_i].time = (0, _format2.default)(sysMsgList[_i].data.time, 'YYYY-MM-DD HH:mm');
      }
      return sysMsgList;
    }
  }
};
module.exports = exports['default'];

/***/ }),

/***/ 443:
/* no static exports found */
/* all exports used */
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./~/css-loader?sourceMap!./~/vue-loader/lib/style-compiler?{"id":"data-v-cf2ce1b6","scoped":true,"hasInlineConfig":true}!./~/vux-loader/src/after-less-loader.js!./~/less-loader/lib/loader.js!./~/vux-loader/src/style-loader.js!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/pages/Contacts.vue ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(/*! ../../~/css-loader/lib/css-base.js */ 3)(true);
// imports


// module
exports.push([module.i, "\n.p-contacts[data-v-cf2ce1b6] {\n  background-color: #f3f3f3;\n}\n.p-contacts .sysMsgItem[data-v-cf2ce1b6] {\n  height: auto;\n  background-color: #fff;\n  margin-bottom: 6px;\n  font-size: 14px;\n  padding: 0 5px;\n}\n.p-contacts .sysMsgItem .sysMsg-title[data-v-cf2ce1b6] {\n  line-height: 40px;\n  border-bottom: 1px solid #efefef;\n  color: #333;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.p-contacts .sysMsgItem .sysMsg-content[data-v-cf2ce1b6] {\n  max-height: 60px;\n  overflow: hidden;\n  line-height: 30px;\n  color: #999;\n  white-space: inherit;\n  -webkit-line-clamp: 2;\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  border-bottom: 1px solid #efefef;\n}\n.p-contacts .sysMsgItem .sysMsg-time[data-v-cf2ce1b6] {\n  height: 30px;\n  line-height: 30px;\n  color: #999;\n  text-align: right;\n}\n", "", {"version":3,"sources":["D:/Cassie-project/netease-h5-demo/src/pages/Contacts.vue"],"names":[],"mappings":";AAAA;EACE,0BAA0B;CAC3B;AACD;EACE,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,gBAAgB;EAChB,eAAe;CAChB;AACD;EACE,kBAAkB;EAClB,iCAAiC;EACjC,YAAY;EACZ,iBAAiB;EACjB,wBAAwB;EACxB,oBAAoB;CACrB;AACD;EACE,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,YAAY;EACZ,qBAAqB;EACrB,sBAAsB;EACtB,qBAAqB;EACrB,6BAA6B;EAC7B,iCAAiC;CAClC;AACD;EACE,aAAa;EACb,kBAAkB;EAClB,YAAY;EACZ,kBAAkB;CACnB","file":"Contacts.vue","sourcesContent":[".p-contacts {\n  background-color: #f3f3f3;\n}\n.p-contacts .sysMsgItem {\n  height: auto;\n  background-color: #fff;\n  margin-bottom: 6px;\n  font-size: 14px;\n  padding: 0 5px;\n}\n.p-contacts .sysMsgItem .sysMsg-title {\n  line-height: 40px;\n  border-bottom: 1px solid #efefef;\n  color: #333;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.p-contacts .sysMsgItem .sysMsg-content {\n  max-height: 60px;\n  overflow: hidden;\n  line-height: 30px;\n  color: #999;\n  white-space: inherit;\n  -webkit-line-clamp: 2;\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  border-bottom: 1px solid #efefef;\n}\n.p-contacts .sysMsgItem .sysMsg-time {\n  height: 30px;\n  line-height: 30px;\n  color: #999;\n  text-align: right;\n}\n"],"sourceRoot":""}]);

// exports


/***/ }),

/***/ 463:
/* no static exports found */
/* all exports used */
/*!***********************************************************************************************************************************************************************************************************************************************!*\
  !*** ./~/vue-loader/lib/template-compiler?{"id":"data-v-cf2ce1b6"}!./~/vux-loader/src/before-template-compiler-loader.js!./~/vux-loader/src/template-loader.js!./~/vue-loader/lib/selector.js?type=template&index=0!./src/pages/Contacts.vue ***!
  \***********************************************************************************************************************************************************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: "g-inherit m-main p-contacts",
    style: ({
      paddingBottom: _vm.model
    })
  }, _vm._l((_vm.sessionlist), function(item, index) {
    return _c('div', {
      staticClass: "sysMsgItem"
    }, [_c('div', {
      staticClass: "sysMsg-title"
    }, [_vm._v(_vm._s(item.data.title))]), _vm._v(" "), _c('div', {
      staticClass: "sysMsg-content"
    }, [_vm._v(_vm._s(item.data.summary))]), _vm._v(" "), _c('div', {
      staticClass: "sysMsg-time"
    }, [_vm._v(_vm._s(item.time))])])
  }))
},staticRenderFns: []}
module.exports.render._withStripped = true
if (false) {
  module.hot.accept()
  if (module.hot.data) {
     require("vue-hot-reload-api").rerender("data-v-cf2ce1b6", module.exports)
  }
}

/***/ }),

/***/ 482:
/* no static exports found */
/* all exports used */
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./~/vue-style-loader!./~/css-loader?sourceMap!./~/vue-loader/lib/style-compiler?{"id":"data-v-cf2ce1b6","scoped":true,"hasInlineConfig":true}!./~/vux-loader/src/after-less-loader.js!./~/less-loader/lib/loader.js!./~/vux-loader/src/style-loader.js!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/pages/Contacts.vue ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(/*! !../../~/css-loader?sourceMap!../../~/vue-loader/lib/style-compiler?{"id":"data-v-cf2ce1b6","scoped":true,"hasInlineConfig":true}!../../~/vux-loader/src/after-less-loader.js!../../~/less-loader/lib/loader.js!../../~/vux-loader/src/style-loader.js!../../~/vue-loader/lib/selector.js?type=styles&index=0!./Contacts.vue */ 443);
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__(/*! ../../~/vue-style-loader/lib/addStylesClient.js */ 4)("a278c2fe", content, false);
// Hot Module Replacement
if(false) {
 // When the styles change, update the <style> tags
 if(!content.locals) {
   module.hot.accept("!!../../node_modules/css-loader/index.js?sourceMap!../../node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-cf2ce1b6\",\"scoped\":true,\"hasInlineConfig\":true}!../../node_modules/vux-loader/src/after-less-loader.js!../../node_modules/less-loader/lib/loader.js!../../node_modules/vux-loader/src/style-loader.js!../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./Contacts.vue", function() {
     var newContent = require("!!../../node_modules/css-loader/index.js?sourceMap!../../node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-cf2ce1b6\",\"scoped\":true,\"hasInlineConfig\":true}!../../node_modules/vux-loader/src/after-less-loader.js!../../node_modules/less-loader/lib/loader.js!../../node_modules/vux-loader/src/style-loader.js!../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./Contacts.vue");
     if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
     update(newContent);
   });
 }
 // When the module is disposed, remove the <style> tags
 module.hot.dispose(function() { update(); });
}

/***/ })

});
//# sourceMappingURL=14.js.map