| @@ -170,8 +170,10 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||
| tools.doGet(biddingList, module.data.form, module.biddingHallList, true); | |||
| } | |||
| goDetail = function(id){ | |||
| tools.skip('biddingBigDataDetail.html?id='+id); | |||
| goDetail = function(id,type){ | |||
| console.log(type) | |||
| var biddtype = type == '进行中'?'Y':'N'; | |||
| tools.skip('biddingBigDataDetail.html?id='+id+'&type='+biddtype); | |||
| } | |||
| return module; | |||
| @@ -28,6 +28,13 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||
| $("#nowDateSFM").html(new Date().toLocaleTimeString()); | |||
| $("#nowTime").html('服务器时间:'+new Date().getFullYear()+'.'+(new Date().getMonth()+1)+'.'+new Date().getDate()+' '+new Date().toLocaleTimeString()); | |||
| },1000) | |||
| tools.doGet(outProject + '/id/'+getQueryVariable('id'), {}, module.outProjectInformation,true); | |||
| if (getQueryVariable('type') == 'Y'){ | |||
| setInterval(function (){ | |||
| tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformation,true); | |||
| },5000) | |||
| } | |||
| }; | |||
| //获取地址栏参数 | |||
| @@ -85,9 +92,9 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||
| } | |||
| } | |||
| console.log(content) | |||
| module.data.outProjectInformationDetail.biddinglistInformationDetail = content; | |||
| var outProjectInformationData = template('outProjectInformationData', module.data); | |||
| $("#outProjectInformationContent").html(outProjectInformationData); | |||
| module.data.biddinglistInformationDetail = content; | |||
| var biddingInformationData = template('biddingInformationData', module.data); | |||
| $("#biddingInformationContent").html(biddingInformationData); | |||
| } | |||
| } | |||
| @@ -136,6 +143,9 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||
| $('#s0').html(((Math.floor(leftTime / 1000 % 60) + '').length < 2 ? '0' + Math.floor(leftTime / 1000 % 60) : Math.floor(leftTime / 1000 % 60) + '')[0]); | |||
| $('#s1').html(((Math.floor(leftTime / 1000 % 60) + '').length < 2 ? '0' + Math.floor(leftTime / 1000 % 60) : Math.floor(leftTime / 1000 % 60) + '')[1]); | |||
| //tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformation,true); | |||
| $('#countType').html('距竞价结束还有') | |||
| }else if (nowTime>Date.parse(biddingStopTime)){ | |||
| //竞价结束 | |||
| @@ -236,6 +246,8 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||
| module.data.outProjectInformationDetail.biddingDirect = biddingDirect; | |||
| var outProjectInformationData = template('outProjectInformationData', module.data); | |||
| $("#outProjectInformationContent").html(outProjectInformationData); | |||
| var outProjectInformationData2 = template('outProjectInformationData2', module.data); | |||
| $("#outProjectInformationContent2").html(outProjectInformationData2); | |||
| } | |||
| } | |||
| @@ -246,6 +258,8 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||
| module.data.outProjectInformationDetail.unit = unit; | |||
| var outProjectInformationData = template('outProjectInformationData', module.data); | |||
| $("#outProjectInformationContent").html(outProjectInformationData); | |||
| var outProjectInformationData2 = template('outProjectInformationData2', module.data); | |||
| $("#outProjectInformationContent2").html(outProjectInformationData2); | |||
| } | |||
| } | |||
| @@ -256,6 +270,8 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||
| module.data.outProjectInformationDetail.biddingType = biddingType; | |||
| var outProjectInformationData = template('outProjectInformationData', module.data); | |||
| $("#outProjectInformationContent").html(outProjectInformationData); | |||
| var outProjectInformationData2 = template('outProjectInformationData2', module.data); | |||
| $("#outProjectInformationContent2").html(outProjectInformationData2); | |||
| } | |||
| } | |||
| @@ -112,7 +112,7 @@ | |||
| {{/if}} | |||
| </td> | |||
| <td>{{value.timeType}}</td> | |||
| <td><input type="button" onclick="goDetail({{value.id}})" value="详情" style="margin-left: 10px;" /></td> | |||
| <td><input type="button" onclick="goDetail({{value.id}},'{{value.timeType}}')" value="详情" style="margin-left: 10px;" /></td> | |||
| </tr> | |||
| {{/each}} | |||
| </script> | |||
| @@ -43,25 +43,24 @@ | |||
| <a href="/"><img src="../../static/images/home.png" alt=""></a> | |||
| </div> | |||
| </div> | |||
| <div id="outProjectInformationContent"></div> | |||
| <div id="outProjectInformationContent" class="topTit_content"></div> | |||
| <script id="outProjectInformationData" type="text/html"> | |||
| <div class="topTit_content"> | |||
| <div class="topTit_content_left"> | |||
| <p>当<br/>前<br/>项<br/>目</p> | |||
| <p>{{outProjectInformationDetail.projectName}}</p> | |||
| <!-- <p>终止项目</p>--> | |||
| </div> | |||
| <div class="topTit_content_left"> | |||
| <p>当<br/>前<br/>项<br/>目</p> | |||
| <p>{{outProjectInformationDetail.projectName}}</p> | |||
| <!-- <p>终止项目</p>--> | |||
| </div> | |||
| <div class="topTit_content_center" style="margin-left: auto;"> | |||
| <p>当前项目有效报名人数</p> | |||
| <p><span>{{outProjectInformationDetail.bidderNum}}</span>人</p> | |||
| </div> | |||
| <div class="topTit_content_center" style="margin-left: auto;"> | |||
| <p>当前项目有效报名人数</p> | |||
| <p><span>{{outProjectInformationDetail.bidderNum}}</span>人</p> | |||
| </div> | |||
| <div class="topTit_content_center"> | |||
| <p>已参与出价次数</p> | |||
| <p><span>{{outProjectInformationDetail.bidPriceNum}}</span>人</p> | |||
| </div> | |||
| <div class="topTit_content_center"> | |||
| <p>已参与出价次数</p> | |||
| <p><span>{{outProjectInformationDetail.bidPriceNum}}</span>人</p> | |||
| </div> | |||
| </script> | |||
| <div class="content_box"> | |||
| <div class="bidding" style="width: 61%;margin: 0;border: 1px solid #0071ff;"> | |||
| @@ -78,8 +77,9 @@ | |||
| </tr> | |||
| </table> | |||
| <div class="tableList" id="tableList" style="height: calc(100vh - 130px - 27vh)!important"> | |||
| <table width="100%;" cellpadding="0" cellspacing="0" style="table-layout: fixed;"> | |||
| {{each outProjectInformationDetail.biddinglistInformationDetail as value i}} | |||
| <table width="100%;" id="biddingInformationContent" cellpadding="0" cellspacing="0" style="table-layout: fixed;"> | |||
| <script id="biddingInformationData" type="text/html"> | |||
| {{each biddinglistInformationDetail as value i}} | |||
| <tr> | |||
| <td>{{value.userName}}</td> | |||
| <td>{{value.userAccount}}</td> | |||
| @@ -87,11 +87,13 @@ | |||
| <td>{{value.loginTime}}</td> | |||
| </tr> | |||
| {{/each}} | |||
| </script> | |||
| </table> | |||
| </div> | |||
| </div> | |||
| <div class="content_box_right"> | |||
| <div class="content_box_right" id="outProjectInformationContent2"> | |||
| <script id="outProjectInformationData2" type="text/html"> | |||
| <p class="content_box_right_tit" id="nowTime"></p> | |||
| <p class="content_box_right_tit2" id="countType"></p> | |||
| @@ -118,8 +120,8 @@ | |||
| <p>目前最优出价</p> | |||
| <img src="../../static/images/tt_border.png" alt=""> | |||
| {{if outProjectInformationDetail.biddinglistInformationDetail!=undefined && outProjectInformationDetail.biddinglistInformationDetail.length>0 }} | |||
| <p style="color: #ff6c92">{{outProjectInformationDetail.biddinglistInformationDetail[0].money}}{{outProjectInformationDetail.unit}}</p> | |||
| {{if biddinglistInformationDetail!=undefined && biddinglistInformationDetail.length>0 }} | |||
| <p style="color: #ff6c92">{{biddinglistInformationDetail[0].money}}{{outProjectInformationDetail.unit}}</p> | |||
| {{else}} | |||
| <p style="color: #ff6c92">无</p> | |||
| {{/if}} | |||
| @@ -129,8 +131,8 @@ | |||
| <div class="content_box_right_num"> | |||
| <p>当前最优出价人(相同出价时以最终成交为准!)</p> | |||
| <img src="../../static/images/tt_border.png" alt=""> | |||
| {{if outProjectInformationDetail.biddinglistInformationDetail!=undefined && outProjectInformationDetail.biddinglistInformationDetail.length>0 }} | |||
| <p>{{outProjectInformationDetail.biddinglistInformationDetail[0].userName}}</p> | |||
| {{if biddinglistInformationDetail!=undefined && biddinglistInformationDetail.length>0 }} | |||
| <p>{{biddinglistInformationDetail[0].userName}}</p> | |||
| {{else}} | |||
| <p>无</p> | |||
| {{/if}} | |||
| @@ -162,10 +164,9 @@ | |||
| <td colspan="3">{{outProjectInformationDetail.biddingStartTime}} 至 {{outProjectInformationDetail.biddingStopTime}}</td> | |||
| </tr> | |||
| </table> | |||
| </script> | |||
| </div> | |||
| </div> | |||
| </script> | |||
| </div> | |||
| </body> | |||
| <!--target-module="./static/js/project/index.js"--> | |||