|
@@ -23,19 +23,6 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="MyBuyAll">
|
|
<div id="MyBuyAll">
|
|
- <a href="javascript:void(0);" style="color: grey;font-size: large">
|
|
|
|
- <div style="display: flex; flex-direction: row; text-align: center; font-size: x-small; line-height: 5vh;">
|
|
|
|
- <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">
|
|
|
|
- 蔬菜套餐,猪肉牛肉金针菇等
|
|
|
|
- </div>
|
|
|
|
- <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">
|
|
|
|
- 02/02 14:30
|
|
|
|
- </div>
|
|
|
|
- <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">
|
|
|
|
- 在团
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </a>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -49,7 +36,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="buyAll" class="weui-panel__bd">
|
|
<div id="buyAll" class="weui-panel__bd">
|
|
- <#-- <a href="javascript:void(0);" style="color: grey;font-size: large">
|
|
|
|
|
|
+ <#-- <a href="javascript:void(0);" style="color: grey;font-size: large">
|
|
<div style="display: flex; flex-direction: row; text-align: center; font-size: x-small; line-height: 5vh;"
|
|
<div style="display: flex; flex-direction: row; text-align: center; font-size: x-small; line-height: 5vh;"
|
|
onclick=" myBuyClick()">
|
|
onclick=" myBuyClick()">
|
|
<div style="width: 40%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">
|
|
<div style="width: 40%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">
|
|
@@ -72,6 +59,7 @@
|
|
<script>
|
|
<script>
|
|
//商品的团购信息的展示
|
|
//商品的团购信息的展示
|
|
function buyGroup() {
|
|
function buyGroup() {
|
|
|
|
+ console.log('商品团购')
|
|
$('#buy_nav1')[0].style.display = '';
|
|
$('#buy_nav1')[0].style.display = '';
|
|
$('#buyListGroup')[0].style.display = '';
|
|
$('#buyListGroup')[0].style.display = '';
|
|
$('#buy_nav2')[0].style.display = 'none';
|
|
$('#buy_nav2')[0].style.display = 'none';
|
|
@@ -80,7 +68,7 @@
|
|
$.ajax({
|
|
$.ajax({
|
|
url: '/home/buy/group',
|
|
url: '/home/buy/group',
|
|
type: 'get',
|
|
type: 'get',
|
|
- data: {},
|
|
|
|
|
|
+ data: {userId: $('#userId').val()},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
if (data.success) {
|
|
if (data.success) {
|
|
if (data.data.length > 0) {
|
|
if (data.data.length > 0) {
|
|
@@ -91,7 +79,6 @@
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@@ -101,18 +88,10 @@
|
|
$('#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="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">\n' +
|
|
|
|
- ' 蔬菜套餐,猪肉牛肉金针菇等\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
- ' <div style="width: 15%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">\n' +
|
|
|
|
- ' 24/100\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
- ' <div style="width: 30%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">\n' +
|
|
|
|
- ' 02/02 14:30\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
- ' <div style="width: 15%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">\n' +
|
|
|
|
- ' 在团\n' +
|
|
|
|
- ' </div>\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">' + v.tgStatus + '</div>\n' +
|
|
' </div>\n' +
|
|
' </div>\n' +
|
|
' </a>');
|
|
' </a>');
|
|
}
|
|
}
|
|
@@ -126,9 +105,9 @@
|
|
$('#buy_nav2')[0].style.display = '';
|
|
$('#buy_nav2')[0].style.display = '';
|
|
$('#MyBuyAll').empty();
|
|
$('#MyBuyAll').empty();
|
|
$.ajax({
|
|
$.ajax({
|
|
- url: '',
|
|
|
|
|
|
+ url: '/home/Mygroup/group',
|
|
type: 'get',
|
|
type: 'get',
|
|
- data: {},
|
|
|
|
|
|
+ data: {userId: $('#userId').val()},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
if (data.success) {
|
|
if (data.success) {
|
|
if (data.data.length > 0) {
|
|
if (data.data.length > 0) {
|
|
@@ -149,27 +128,31 @@
|
|
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="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">\n' +
|
|
|
|
- ' 蔬菜套餐,猪肉牛肉金针菇等\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
- ' <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">\n' +
|
|
|
|
- ' 02/02 14:30\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
- ' <div style="width: 33%; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: 12px">\n' +
|
|
|
|
- ' 在团\n' +
|
|
|
|
- ' </div>\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">' + v.tgStatus + '</div>\n' +
|
|
' </div>\n' +
|
|
' </div>\n' +
|
|
' </a>')
|
|
' </a>')
|
|
}
|
|
}
|
|
|
|
|
|
function myBuyClick2(v) {
|
|
function myBuyClick2(v) {
|
|
- window.location.href = "/home/buytc.html?userId=" + $('#userId').val();
|
|
|
|
|
|
+ window.location.href = "/home/buytc.html?userId=" + $('#userId').val()+ "&jmId=" + v.jmId+"&type="+2;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/*居民求助信息*/
|
|
/*居民求助信息*/
|
|
function myBuyClick(v) {
|
|
function myBuyClick(v) {
|
|
- window.location.href = "/home/buytc.html?userId=" + $('#userId').val();
|
|
|
|
|
|
+ window.location.href = "/home/buytc.html?userId=" + $('#userId').val() + "&jmId=" + v.jmId+"&type="+1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ function tugouStatus(status) {
|
|
|
|
+ if (status == 1) {
|
|
|
|
+ return "<span style='color:Black;'>在团</span>";
|
|
|
|
+ } else if (status == 2) {
|
|
|
|
+ return "<span style='color:Black;'>处理中</span>";
|
|
|
|
+ } else {
|
|
|
|
+ return "<span style='color:green;'>已完成</span>";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|