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) {
|