Blame view

dist/static/js/pages/lectureDetail/main.js 8.67 KB
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
  global.webpackJsonp([25],{
  
  /***/ 218:
  /***/ (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__(219);
  
  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: '讲座详情'
    }
  };
  
  /***/ }),
  
  /***/ 219:
  /***/ (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__(221);
  /* 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_77a6b03f_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__(222);
  var disposed = false
  function injectStyle (ssrContext) {
    if (disposed) return
    __webpack_require__(220)
  }
  var normalizeComponent = __webpack_require__(0)
  /* script */
  
  /* template */
  
  /* styles */
  var __vue_styles__ = injectStyle
  /* scopeId */
  var __vue_scopeId__ = "data-v-77a6b03f"
  /* 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_77a6b03f_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\\lectureDetail\\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-77a6b03f", Component.options)
    } else {
      hotAPI.reload("data-v-77a6b03f", Component.options)
    }
    module.hot.dispose(function (data) {
      disposed = true
    })
  })()}
  
  /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
  
  
  /***/ }),
  
  /***/ 220:
  /***/ (function(module, exports) {
  
  // removed by extract-text-webpack-plugin
  
  /***/ }),
  
  /***/ 221:
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _mpvueWxparse = __webpack_require__(33);
  
  var _mpvueWxparse2 = _interopRequireDefault(_mpvueWxparse);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  exports.default = {
    components: {
      wxParse: _mpvueWxparse2.default
    },
    data: function data() {
      return {
        lecture: {},
        imgLoaded: false,
        imageProp: {}
      };
    },
  
    methods: {
      getLectureDetail: function getLectureDetail(lrid) {
        var _this = this;
  
        wx.request({
          url: this.rootUrl + '/lecture/getbyid/' + lrid,
          success: function success(res) {
            console.log(res);
            _this.lecture = res.data[0];
            _this.lecture.lecture_content = _this.lecture.lecture_content.replace(/<[^>\\]*\\[^>]*>/g, '');
            _this.lecture.createdate = _this.service.correctTime(_this.lecture.createdate, 'full');
            _this.lecture.lecture_date = _this.service.correctTime(_this.lecture.lecture_date, 'full');
            _this.imgLoaded = true;
          }
        });
      }
    },
    onLoad: function onLoad() {
      this.imgLoaded = false;
      this.imageProp = { mode: 'aspectFit', padding: 0, lazyLoad: false, domain: this.rootAvatar.replace('https:', '') };
      this.getLectureDetail(this.$root.$mp.query.lrid);
    },
    onUnload: function onUnload() {
      this.lecture = {};
    }
  }; //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  
  /***/ }),
  
  /***/ 222:
  /***/ (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.lecture.createdate) ? _c('div', {
      staticClass: "container"
    }, [_vm._m(0), _vm._v(" "), _c('div', {
      staticClass: "title"
    }, [_vm._v("\r\n      " + _vm._s(_vm.lecture.lecture_title) + "\r\n      "), (_vm.lecture.is_auditing == 0) ? _c('div', [_vm._v("审核中")]) : _c('div', {
      staticStyle: {
        "background": "tan"
      }
    }, [_vm._v("已通过")])]), _vm._v(" "), _vm._m(1), _vm._v(" "), _c('div', {
      staticClass: "lawyers"
    }, [(_vm.imgLoaded) ? _c('img', {
      staticClass: "photo",
      attrs: {
        "src": _vm.rootAvatar + _vm.lecture.pic_Name,
        "mode": "aspectFill",
        "eventid": '0'
      },
      on: {
        "error": function($event) {
          _vm.imgLoaded = false
        }
      }
    }) : _c('img', {
      staticClass: "photo",
      attrs: {
        "src": "/static/imgs/avatar.png"
      }
    }), _vm._v(" "), _c('div', {
      staticClass: "info"
    }, [_c('div', {
      staticClass: "name"
    }, [_vm._v(_vm._s(_vm.lecture.name)), _c('img', {
      attrs: {
        "src": _vm.lecture.sex == 1 ? '/static/imgs/man.png' : '/static/imgs/woman.png'
      }
    })]), _vm._v(" "), _c('div', {
      staticClass: "expertin"
    }, [_vm._v(_vm._s(_vm.lecture.cate_Name))]), _vm._v(" "), _c('div', {
      staticClass: "fame"
    }, [_vm._v(_vm._s(_vm.lecture.firm_Name))])]), _vm._v(" "), _c('div', {
      staticClass: "btn"
    })]), _vm._v(" "), _vm._m(2), _vm._v(" "), _c('div', {
      staticClass: "sub-info"
    }, [_c('div', [_vm._v("讲座时间:")]), _c('div', [_vm._v(_vm._s(_vm.lecture.lecture_date))])]), _vm._v(" "), _c('div', {
      staticClass: "sub-info"
    }, [_c('div', [_vm._v("讲座社区:")]), _c('div', [_vm._v(_vm._s(_vm.lecture.comm_Name))])]), _vm._v(" "), _c('div', {
      staticClass: "sub-info"
    }, [_c('div', [_vm._v("社区地点:")]), _c('div', [_vm._v(_vm._s(_vm.lecture.comm_Address))])]), _vm._v(" "), _c('div', {
      staticClass: "sub-info"
    }, [_c('div', [_vm._v("社区电话:")]), _c('div', [_vm._v(_vm._s(_vm.lecture.comm_Tel))])]), _vm._v(" "), _c('div', {
      staticClass: "sub-info"
    }, [_c('div', [_vm._v("发布时间:")]), _c('div', [_vm._v(_vm._s(_vm.lecture.createdate))])]), _vm._v(" "), _vm._m(3), _vm._v(" "), _c('div', {
      staticClass: "text"
    }, [_c('wxParse', {
      attrs: {
        "content": _vm.lecture.lecture_content,
        "noData": "加载中……",
        "imageProp": _vm.imageProp,
        "mpcomid": '0'
      }
    })], 1)]) : _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("讲座概要")])
  },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-77a6b03f", esExports)
    }
  }
  
  /***/ })
  
  },[218]);
  //# sourceMappingURL=main.js.map