|
@@ -29,9 +29,9 @@
|
|
<div class="weui-form-preview"
|
|
<div class="weui-form-preview"
|
|
id="buyListGroup">
|
|
id="buyListGroup">
|
|
<div style="display: flex; flex-direction: row; color: grey; font-size: medium;">
|
|
<div style="display: flex; flex-direction: row; color: grey; font-size: medium;">
|
|
- <div style="width: 40%; text-align: center;color: #0a001f">标题</div>
|
|
|
|
- <div style="width: 15%; text-align: center;color: #0a001f">已团</div>
|
|
|
|
- <div style="width: 30%; text-align: center;color: #0a001f">截止时间</div>
|
|
|
|
|
|
+ <div style="width: 30%; text-align: center;color: #0a001f">标题</div>
|
|
|
|
+ <div style="width: 20%; text-align: center;color: #0a001f">已团</div>
|
|
|
|
+ <div style="width: 35%; text-align: center;color: #0a001f">截止时间</div>
|
|
<div style="width: 15%; text-align: center;color: #0a001f">状态</div>
|
|
<div style="width: 15%; text-align: center;color: #0a001f">状态</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -87,12 +87,12 @@
|
|
function buyList(v) {
|
|
function buyList(v) {
|
|
$('#buyAll').append(' <a href="javascript:void(0);" style="color: grey;font-size: large" data-id="form"\n' +
|
|
$('#buyAll').append(' <a href="javascript:void(0);" style="color: grey;font-size: large" data-id="form"\n' +
|
|
' onclick=\'myBuyClick(' + JSON.stringify(v) + ')\'>\n' +
|
|
' onclick=\'myBuyClick(' + JSON.stringify(v) + ')\'>\n' +
|
|
- ' <div style="display: flex; flex-direction: row; text-align: center; font-size: x-small; line-height: 5vh;">\n' +
|
|
|
|
- ' <div style="width: 40%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">' + v.tgTitle + '</div>\n' +
|
|
|
|
- ' <div style="width: 15%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">\n' + v.count + '/' + v.tgMinNum + '</div>\n' +
|
|
|
|
- ' <div style="width: 30%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">' + timestampToTime(v.tgEndTime) + '</div>\n' +
|
|
|
|
- ' <div style="width: 15%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">' + getStatus(v.tgStatus) + '</div>\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
|
|
+ ' <div style="display: flex; flex-direction: row; text-align: center; font-size: x-small; line-height: 4vh;">\n' +
|
|
|
|
+ ' <div style="width: 30%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 14px">' + v.tgTitle + '</div>\n' +
|
|
|
|
+ ' <div style="width: 20%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 14px">\n' + v.count + '/' + v.tgMinNum + '</div>\n' +
|
|
|
|
+ ' <div style="width: 35%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 14px">' + timestampY(v.tgEndTime) + '</div>\n' +
|
|
|
|
+ ' <div style="width: 15%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 14px">' + getStatus(v.tgStatus) + '</div>\n' +
|
|
|
|
+ ' <div class="weui-textarea-counter">\n' + '</div></div>\n' +
|
|
' </a>');
|
|
' </a>');
|
|
}
|
|
}
|
|
|
|
|
|
@@ -127,10 +127,10 @@
|
|
|
|
|
|
function MybuyList(v) {
|
|
function MybuyList(v) {
|
|
$('#MyBuyAll').append('<a href="javascript:void(0);" style="color: grey;font-size: large" data-id="form" onclick=\'myBuyClick2(' + JSON.stringify(v) + ')\'>\n' +
|
|
$('#MyBuyAll').append('<a href="javascript:void(0);" style="color: grey;font-size: large" data-id="form" onclick=\'myBuyClick2(' + JSON.stringify(v) + ')\'>\n' +
|
|
- ' <div style="display: flex; flex-direction: row; text-align: center; font-size: x-small; line-height: 5vh;">\n' +
|
|
|
|
- ' <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">' + v.tgTitle + '</div>\n' +
|
|
|
|
- ' <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">' + timestampToTime(v.timeCreate) + '</div>\n' +
|
|
|
|
- ' <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">' + getStatus(v.tgStatus) + '</div>\n' +
|
|
|
|
|
|
+ ' <div style="display: flex; flex-direction: row; text-align: center; font-size: x-small; line-height: 4vh;">\n' +
|
|
|
|
+ ' <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 14px">' + v.tgTitle + '</div>\n' +
|
|
|
|
+ ' <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 14px">' + timestampY(v.timeCreate) + '</div>\n' +
|
|
|
|
+ ' <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 14px">' + getStatus(v.tgStatus) + '</div>\n' +
|
|
' </div>\n' + ' </a>')
|
|
' </div>\n' + ' </a>')
|
|
}
|
|
}
|
|
|
|
|
|
@@ -170,4 +170,15 @@
|
|
return "<span style='color:red;'>取消</span>";
|
|
return "<span style='color:red;'>取消</span>";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ function timestampY(timestamp) {
|
|
|
|
+ var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
|
|
|
|
+ var Y = date.getFullYear() + '/';
|
|
|
|
+ var M = ((date.getMonth() + 1) < 10) ? ('0' + (date.getMonth() + 1) + '/') : ((date.getMonth() + 1) + '/');
|
|
|
|
+ var D = (date.getDate() < 10) ? ('0' + date.getDate() + ' ') : (date.getDate() + ' ');
|
|
|
|
+ var h = (date.getHours() < 10) ? ('0' + date.getHours() + ':') : (date.getHours() + ':');
|
|
|
|
+ var m = (date.getMinutes() < 10) ? ('0' + date.getMinutes() + ':') : (date.getMinutes() + ':');
|
|
|
|
+ var s = (date.getSeconds() < 10) ? ('0' + date.getSeconds()) : (date.getSeconds());
|
|
|
|
+ return M + D + h + m + s;
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|