main.js 8.17 KB
global.webpackJsonp([35],{

/***/ 93:
/***/ (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__(94);

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: '事务详情'
  }
};

/***/ }),

/***/ 94:
/***/ (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__(96);
/* 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_517efa00_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__(97);
var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(95)
}
var normalizeComponent = __webpack_require__(0)
/* script */

/* template */

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

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


/***/ }),

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

// removed by extract-text-webpack-plugin

/***/ }),

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

"use strict";


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

exports.default = {
  data: function data() {
    return {
      affair: {},
      imgfiles: [],
      videoSrc: ''
    };
  },

  methods: {
    previewImg: function previewImg(i) {
      wx.previewImage({
        urls: this.imgfiles,
        current: this.imgfiles[i]
      });
    }
  },
  onLoad: function onLoad() {
    var _this = this;

    wx.request({
      url: this.rootUrl + '/con/getByFileID/' + this.$root.$mp.query.ciid,
      success: function success(res) {
        console.log(res);
        var imgfiles = [];
        var isImage = new RegExp(/.png|.jpg|.jpeg/);
        res.data.file.forEach(function (v) {
          if (isImage.test(v.pic_Name)) imgfiles.push(_this.rootAvatar + v.pic_Name);else _this.videoSrc = v.pic_Name;
        });
        _this.imgfiles = imgfiles;
        _this.affair = res.data.ConsultantInfo;
        _this.affair.createDate = _this.service.correctTime(_this.affair.createDate);
        _this.affair.consultant_Sex = _this.affair.consultant_Sex == 1 ? '男' : '女';
      }
    });
  },
  onUnload: function onUnload() {
    this.affair = {};
    this.imgfiles = [];
    this.videoSrc = '';
  }
};

/***/ }),

/***/ 97:
/***/ (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 (_vm.affair.createDate) ? _c('div', {
    staticClass: "container"
  }, [_vm._m(0), _vm._v(" "), _c('div', {
    staticClass: "sub-info"
  }, [_c('div', [_vm._v("姓名:")]), _c('div', [_vm._v(_vm._s('' || _vm.affair.consultant_Name))])]), _vm._v(" "), _c('div', {
    staticClass: "sub-info"
  }, [_c('div', [_vm._v("性别:")]), _c('div', [_vm._v(_vm._s('' || _vm.affair.consultant_Sex))])]), _vm._v(" "), _c('div', {
    staticClass: "sub-info"
  }, [_c('div', [_vm._v("年龄:")]), _c('div', [_vm._v(_vm._s('' || _vm.affair.consultant_Age))])]), _vm._v(" "), _c('div', {
    staticClass: "sub-info"
  }, [_c('div', [_vm._v("地址:")]), _c('div', [_vm._v(_vm._s('' || _vm.affair.consultant_address))])]), _vm._v(" "), _c('div', {
    staticClass: "sub-info"
  }, [_c('div', [_vm._v("电话:")]), _c('div', [_vm._v(_vm._s('' || _vm.affair.consultant_Tel))])]), _vm._v(" "), _c('div', {
    staticClass: "sub-info"
  }, [_c('div', [_vm._v("咨询时间:")]), _c('div', [_vm._v(_vm._s('' || _vm.affair.createDate))])]), _vm._v(" "), _vm._m(1), _vm._v(" "), _c('div', {
    staticClass: "text"
  }, [_vm._v(_vm._s('' || _vm.affair.consultant_question))]), _vm._v(" "), _vm._m(2), _vm._v(" "), _c('div', {
    staticClass: "text"
  }, [_vm._v(_vm._s('' || _vm.affair.consultant_Answer))]), _vm._v(" "), (_vm.imgfiles.length > 0) ? _c('div', {
    staticClass: "para-title"
  }, [_c('div'), _vm._v("相关图片")]) : _vm._e(), _vm._v(" "), (_vm.imgfiles.length > 0) ? _c('div', {
    staticClass: "img-box",
    staticStyle: {
      "padding": "0",
      "margin": "-25rpx 0 20rpx 0"
    }
  }, _vm._l((_vm.imgfiles), function(v, i) {
    return _c('img', {
      key: i,
      attrs: {
        "src": v,
        "mode": "aspectFill",
        "eventid": '0-' + i
      },
      on: {
        "tap": function($event) {
          _vm.previewImg(i)
        }
      }
    })
  })) : _vm._e(), _vm._v(" "), (_vm.videoSrc) ? _c('div', {
    staticClass: "para-title"
  }, [_c('div'), _vm._v("相关视频")]) : _vm._e(), _vm._v(" "), (_vm.videoSrc) ? _c('video', {
    attrs: {
      "show-mute-btn": "",
      "src": _vm.rootAvatar + _vm.videoSrc,
      "id": "affairVideo"
    }
  }) : _vm._e(), _vm._v(" "), _c('div', {
    staticStyle: {
      "height": "100rpx",
      "width": "100%"
    }
  })]) : _c('div', {
    staticClass: "LoadingMask"
  }, [_c('img', {
    attrs: {
      "src": "/static/imgs/loading.png"
    }
  })])
}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: "para-title"
  }, [_c('div'), _vm._v("咨询者详情")])
},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: "para-title"
  }, [_c('div'), _vm._v("咨询问题")])
},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: "para-title"
  }, [_c('div'), _vm._v("律师回答")])
}]
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-517efa00", esExports)
  }
}

/***/ })

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