|
@@ -929,26 +929,17 @@ To change this template use File | Settings | File Templates.
|
|
|
for (var j = 0; j < arr.length; j++) {
|
|
|
var t = arr[j];
|
|
|
imgurlhtml = imgurlhtml + '<li><img src="' + t + '" class="am-pureview am-active"></li>';
|
|
|
- // $("li img").lazyload();
|
|
|
-// if ($.AMUI.fullscreen.enabled) {
|
|
|
-// $.AMUI.fullscreen.request();
|
|
|
-// } else {
|
|
|
-// //Ignore or do something else
|
|
|
-// }
|
|
|
}
|
|
|
} else {
|
|
|
imgurlhtml = imgurlhtml + '<li><img src="' + x.imgurl + '" class="am-pureview am-active"></li>';
|
|
|
-// if ($.AMUI.fullscreen.enabled) {
|
|
|
-// $.AMUI.fullscreen.request();
|
|
|
-// } else {
|
|
|
-// //Ignore or do something else
|
|
|
-// }
|
|
|
}
|
|
|
imgurlhtml = imgurlhtml + '</ul>';
|
|
|
}
|
|
|
- for (var p = 0; p < x.htype.length; p++) {
|
|
|
- if (x.htype[p] != null && x.htype[p] != '') {
|
|
|
- htypehtml = '<a class="mess-tag select htypes" id=' + x.htype[p].id + ' >#' + x.htype[p].title + '</a>' + htypehtml;
|
|
|
+ if (x.htype != null && x.htype != '') {
|
|
|
+ for (var p = 0; p < x.htype.length; p++) {
|
|
|
+ if (x.htype[p] != null && x.htype[p] != '') {
|
|
|
+ htypehtml = '<a class="mess-tag select htypes" id=' + x.htype[p].id + ' >#' + x.htype[p].title + '</a>' + htypehtml;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (x.fileurl != null && x.fileurl != '') {
|
|
@@ -960,7 +951,7 @@ To change this template use File | Settings | File Templates.
|
|
|
vals = 2;
|
|
|
}
|
|
|
}
|
|
|
- if (vars = 2) {
|
|
|
+ if (vals == 2) {
|
|
|
fileurlhtml = '<a class="my-download my-downloadbtn xiaz" id="' + x.fileurl + '" title=' + x.id + '><i class="iconfont icon-xiazai"></i>下载 ' + x.counts + '</a>';
|
|
|
} else {
|
|
|
if (x.money == 0) {
|
|
@@ -1171,6 +1162,10 @@ To change this template use File | Settings | File Templates.
|
|
|
$("#mits").click(function () {
|
|
|
var title = $("#title").val();
|
|
|
var texts = $("#texts").val();
|
|
|
+ if (usersid == null || usersid == '') {
|
|
|
+ layer.msg("请登录后操作");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
if (title == null || title == '') {
|
|
|
layer.msg("标题不能为空");
|
|
|
return false;
|
|
@@ -1179,10 +1174,6 @@ To change this template use File | Settings | File Templates.
|
|
|
layer.msg("正文不能为空");
|
|
|
return false;
|
|
|
}
|
|
|
- if (usersid == null || usersid == '') {
|
|
|
- layer.msg("请登录后操作");
|
|
|
- return false;
|
|
|
- }
|
|
|
$("#forum").submit();
|
|
|
})
|
|
|
|