You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
11 months ago
|
layui.use(['laytpl', 'upload'], function () {
|
||
|
var form = layui.form
|
||
|
, laytpl = layui.laytpl;
|
||
|
|
||
|
var questionId = GetQueryString("question_id");
|
||
|
|
||
|
$.ajax({
|
||
|
type: "GET",
|
||
|
dataType: "json",
|
||
3 months ago
|
url: '/QingLong/jianli/getJlQuestionDetail',
|
||
11 months ago
|
data: {
|
||
|
question_id: questionId
|
||
|
},
|
||
|
success: function (data) {
|
||
|
var questionInfoTpl = questionInfoScript.innerHTML,
|
||
|
questionInfoView = document.getElementById('questionInfoView');
|
||
|
laytpl(questionInfoTpl).render(data, function (html) {
|
||
|
questionInfoView.innerHTML = html;
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
|
||
|
// 下载文件
|
||
|
window.downlaodFile = function (url, fileName) {
|
||
|
download(url, fileName);
|
||
|
}
|
||
|
|
||
|
// 返回
|
||
|
window.back = function () {
|
||
|
window.history.back();
|
||
|
}
|
||
|
|
||
|
// 获取参数值
|
||
|
function GetQueryString(name, istop) {
|
||
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||
|
var r = window.location.search.substr(1).match(reg);
|
||
|
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
||
|
|
||
|
if (r != null) return unescape(r[2]);
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
|
||
|
});
|
||
|
|
||
|
|