Blame view

dist/static/js/pages/article/main.js 7.41 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
  global.webpackJsonp([33],{
  
  /***/ 103:
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var _vue = __webpack_require__(1);
  
  var _vue2 = _interopRequireDefault(_vue);
  
  var _index = __webpack_require__(104);
  
  var _index2 = _interopRequireDefault(_index);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var app = new _vue2.default(_index2.default);
  app.$mount();
  
  /***/ }),
  
  /***/ 104:
  /***/ (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__(106);
  /* 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__);
601b4cbe   wxy   修改我的评价iOS手机日期显示问题
31
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_4b1fb670_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__(170);
ce4c83ff   wxy   初始提交
32
33
34
35
36
37
38
39
40
41
42
43
44
  var disposed = false
  function injectStyle (ssrContext) {
    if (disposed) return
    __webpack_require__(105)
  }
  var normalizeComponent = __webpack_require__(0)
  /* script */
  
  /* template */
  
  /* styles */
  var __vue_styles__ = injectStyle
  /* scopeId */
601b4cbe   wxy   修改我的评价iOS手机日期显示问题
45
  var __vue_scopeId__ = "data-v-4b1fb670"
ce4c83ff   wxy   初始提交
46
47
48
49
  /* 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,
601b4cbe   wxy   修改我的评价iOS手机日期显示问题
50
    __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_4b1fb670_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 */],
ce4c83ff   wxy   初始提交
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
    __vue_styles__,
    __vue_scopeId__,
    __vue_module_identifier__
  )
  Component.options.__file = "src\\pages\\article\\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) {
601b4cbe   wxy   修改我的评价iOS手机日期显示问题
66
      hotAPI.createRecord("data-v-4b1fb670", Component.options)
ce4c83ff   wxy   初始提交
67
    } else {
601b4cbe   wxy   修改我的评价iOS手机日期显示问题
68
      hotAPI.reload("data-v-4b1fb670", Component.options)
ce4c83ff   wxy   初始提交
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
    }
    module.hot.dispose(function (data) {
      disposed = true
    })
  })()}
  
  /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
  
  
  /***/ }),
  
  /***/ 105:
  /***/ (function(module, exports) {
  
  // removed by extract-text-webpack-plugin
  
  /***/ }),
  
  /***/ 106:
  /***/ (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 {
        title: '',
        type: '',
        tags: [],
        files: [],
        lawyer: '',
        time: '',
        content: '',
        imgs: '',
        imageProp: {}
      };
    },
  
    methods: {
      loadArticles: function loadArticles(LIPID) {
        var _this = this;
  
        wx.showLoading({ title: '正在加载' });
        wx.request({
          url: this.rootUrl + '/pub/getbylipid',
          data: {
            LIPID: LIPID,
            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(LIPID);
              });
            } else {
              var data = res.data.resquest;
              _this.title = data.info_Title;
              _this.content = data.info_Content.replace(/<[^>\\]*\\[^>]*>/g, '');
              _this.type = data.info_Type;
              _this.files = res.data.files;
              _this.tags = data.info_Tag.split(',');
              _this.time = _this.service.correctTime(data.createDate);
              wx.hideLoading();
            }
          },
          fail: function fail(res) {
            console.log(res);
          }
        });
      },
      download: function download(i) {
        wx.setClipboardData({
          data: this.rootAvatar + this.files[i].path,
          success: function success(res) {
            wx.hideToast();
            wx.showModal({
              title: '',
              content: '下载链接已复制到剪贴板,请在浏览器中粘贴下载',
              showCancel: false
            });
          }
        });
      }
    },
    onLoad: function onLoad() {
      this.imageProp = { mode: 'aspectFit', padding: 0, lazyLoad: false, domain: this.rootAvatar.replace('https:', '') };
      this.loadArticles(this.$root.$mp.query.LIPID);
    },
    onUnload: function onUnload() {
      this.title = '';
      this.content = '';
      this.type = '';
      this.tags = [];
      this.time = '';
    }
  }; //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  
  /***/ }),
  
  /***/ 170:
  /***/ (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"
    }, [_c('div', {
      staticClass: "title"
    }, [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), _c('div', {
      staticClass: "subhead"
    }, [_c('div', {
      staticClass: "type"
    }, [_vm._v(_vm._s(_vm.type))]), _vm._v("\r\n    " + _vm._s(_vm.time) + "\r\n    "), _vm._l((_vm.tags), function(v, i) {
      return _c('div', {
        key: i,
        staticClass: "tags"
      }, [_vm._v(_vm._s(v))])
    })], 2), _vm._v(" "), _c('div', {
      staticClass: "main"
    }, [_c('wxParse', {
      attrs: {
        "content": _vm.content,
        "noData": "加载中……",
        "imageProp": _vm.imageProp,
        "mpcomid": '0'
      }
    })], 1), _vm._v(" "), _vm._l((_vm.files), function(v, i) {
      return _c('div', {
        key: i,
        staticClass: "download",
        attrs: {
          "hover-class": "fade",
          "eventid": '0-' + i
        },
        on: {
          "tap": function($event) {
            _vm.download(i)
          }
        }
      }, [_c('img', {
        attrs: {
          "src": "/static/imgs/download.png"
        }
      }), _vm._v(_vm._s(v.name))])
    }), _vm._v(" "), _c('div', {
      staticStyle: {
        "width": "100%",
        "height": "130rpx"
      }
    })], 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) {
601b4cbe   wxy   修改我的评价iOS手机日期显示问题
256
       require("vue-hot-reload-api").rerender("data-v-4b1fb670", esExports)
ce4c83ff   wxy   初始提交
257
258
259
260
261
262
263
    }
  }
  
  /***/ })
  
  },[103]);
  //# sourceMappingURL=main.js.map