| @@ -33,6 +33,7 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||||
| if (getQueryVariable('type') == 'Y'){ | if (getQueryVariable('type') == 'Y'){ | ||||
| setInterval(function (){ | setInterval(function (){ | ||||
| tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformation,true); | tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformation,true); | ||||
| tools.doGet(outProject + '/id/'+getQueryVariable('id'), {}, module.outProjectInformation2,true); | |||||
| },5000) | },5000) | ||||
| } | } | ||||
| }; | }; | ||||
| @@ -76,6 +77,17 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||||
| } | } | ||||
| } | } | ||||
| //项目基本信息 | |||||
| module.outProjectInformation2 = function (data) { | |||||
| if (data.code == 200) { | |||||
| var content = data.data; | |||||
| $("#bmrs").html(content.bidderNum); | |||||
| $("#cjcs").html(content.bidPriceNum); | |||||
| $("#jssj").html(content.biddingStopTime); | |||||
| } | |||||
| } | |||||
| //竞价记录 | //竞价记录 | ||||
| module.biddinglistInformation = function (data) { | module.biddinglistInformation = function (data) { | ||||
| if (data.code == 200) { | if (data.code == 200) { | ||||
| @@ -95,7 +107,13 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t | |||||
| module.data.biddinglistInformationDetail = content; | module.data.biddinglistInformationDetail = content; | ||||
| var biddingInformationData = template('biddingInformationData', module.data); | var biddingInformationData = template('biddingInformationData', module.data); | ||||
| $("#biddingInformationContent").html(biddingInformationData); | $("#biddingInformationContent").html(biddingInformationData); | ||||
| if (content.length > 0){ | |||||
| $("#biddingPeople").html(content[0].memberId); | |||||
| $("#biddingMoney").html(content[0].money+module.data.outProjectInformationDetail.unit); | |||||
| }else{ | |||||
| $("#biddingPeople").html('无'); | |||||
| $("#biddingMoney").html('无'); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -53,12 +53,12 @@ | |||||
| <div class="topTit_content_center" style="margin-left: auto;"> | <div class="topTit_content_center" style="margin-left: auto;"> | ||||
| <p>当前项目报名人数</p> | <p>当前项目报名人数</p> | ||||
| <p><span>{{outProjectInformationDetail.bidderNum}}</span>人</p> | |||||
| <p><span id="bmrs">{{outProjectInformationDetail.bidderNum}}</span>人</p> | |||||
| </div> | </div> | ||||
| <div class="topTit_content_center"> | <div class="topTit_content_center"> | ||||
| <p>已参与出价次数</p> | <p>已参与出价次数</p> | ||||
| <p><span>{{outProjectInformationDetail.bidPriceNum}}</span>人</p> | |||||
| <p><span id="cjcs">{{outProjectInformationDetail.bidPriceNum}}</span>人</p> | |||||
| </div> | </div> | ||||
| </script> | </script> | ||||
| @@ -120,22 +120,14 @@ | |||||
| <p>最{{outProjectInformationDetail.biddingDirect=='反向竞价'?'低':'高'}}出价</p> | <p>最{{outProjectInformationDetail.biddingDirect=='反向竞价'?'低':'高'}}出价</p> | ||||
| <img src="../../static/images/tt_border.png" alt=""> | <img src="../../static/images/tt_border.png" alt=""> | ||||
| {{if biddinglistInformationDetail!=undefined && biddinglistInformationDetail.length>0 }} | |||||
| <p style="color: #ff6c92">{{biddinglistInformationDetail[0].money}}{{outProjectInformationDetail.unit}}</p> | |||||
| {{else}} | |||||
| <p style="color: #ff6c92">无</p> | |||||
| {{/if}} | |||||
| <p id="biddingMoney" style="color: #ff6c92">无</p> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div class="content_box_right_num"> | <div class="content_box_right_num"> | ||||
| <p>最新出价人</p> | <p>最新出价人</p> | ||||
| <img src="../../static/images/tt_border.png" alt=""> | <img src="../../static/images/tt_border.png" alt=""> | ||||
| {{if biddinglistInformationDetail!=undefined && biddinglistInformationDetail.length>0 }} | |||||
| <p>{{biddinglistInformationDetail[0].memberId}}</p> | |||||
| {{else}} | |||||
| <p>无</p> | |||||
| {{/if}} | |||||
| <p id="biddingPeople">无</p> | |||||
| </div> | </div> | ||||
| <p class="content_box_right_tit">竞价规则</p> | <p class="content_box_right_tit">竞价规则</p> | ||||
| @@ -163,7 +155,7 @@ | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td>自由竞价期:</td> | <td>自由竞价期:</td> | ||||
| <td colspan="3">{{outProjectInformationDetail.biddingStartTime}} 至 {{outProjectInformationDetail.biddingStopTime}}</td> | |||||
| <td colspan="3">{{outProjectInformationDetail.biddingStartTime}} 至 <b id="jssj">{{outProjectInformationDetail.biddingStopTime}}</b></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </script> | </script> | ||||