Browse Source

产权交易

RongCheng
庞东旭 2 years ago
parent
commit
ad1f9c283d
3 changed files with 38 additions and 5 deletions
  1. +13
    -0
      static/js/api/items.js
  2. +25
    -4
      static/js/project/listingItems/items.js
  3. +0
    -1
      view/listingItems/itemsDetail.html

+ 13
- 0
static/js/api/items.js View File

@@ -104,3 +104,16 @@ var needProject = '/transaction/website/needProject/'//需求详情
id: 主键ID id: 主键ID
*/ */
var updateLimitDelay = '/transaction/outproject/updateLimitDelay'//延时周期 var updateLimitDelay = '/transaction/outproject/updateLimitDelay'//延时周期

var selectMemberUser = '/transaction/member/userId/'//延时周期
/*
@purl /getInfo
@param
*/
var userData = '/getInfo' //修改用户信息类接口

/*
@purl /transaction/website/member/{id}
@param
*/
var userMember = '/transaction/member/userId' //用户信息类接口

+ 25
- 4
static/js/project/listingItems/items.js View File

@@ -216,10 +216,29 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
var nowTime = Date.parse(new Date()); var nowTime = Date.parse(new Date());
var signupStopTime = Date.parse(module.data.outProjectInformationDetail.signupStopTime) var signupStopTime = Date.parse(module.data.outProjectInformationDetail.signupStopTime)
if (nowTime>signupStopTime){ if (nowTime>signupStopTime){
tools.initError('报名结束!');
tools.initError('报名结束!');
return; return;
} }
tools.skip('bond.html?id='+getQueryVariable('id'))
tools.doGet(userData, {}, module.userData);

}
module.userData = function(data){
if (data.code == 200) {
var content = data.user;
//console.log(content)
module.data.userId = content.userId;
tools.doGet(userMember + '/' + content.userId, {}, module.userMember);//memberType 1个人 2单位
}
}
module.userMember = function(data){
if (data.code == 200) {
var content = data.data;
if (content.auditStatus == 'Y'){
tools.skip('bond.html?id='+getQueryVariable('id'))
}else{
tools.initError("交易中心审核注册信息后方可进行报名!");
}
}
} }


//项目基本信息 //项目基本信息
@@ -267,8 +286,10 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
} }
console.log(content) console.log(content)
module.data.outProjectInformationDetail = content; module.data.outProjectInformationDetail = content;
var outProjectInformationData = template('outProjectInformationData', module.data);
$("#outProjectInformationContent").html(outProjectInformationData);
setTimeout(function(){
var outProjectInformationData = template('outProjectInformationData', module.data);
$("#outProjectInformationContent").html(outProjectInformationData);
},2000)


$("#know").html(module.data.know); $("#know").html(module.data.know);
//挂牌项目竞价记录 //挂牌项目竞价记录


+ 0
- 1
view/listingItems/itemsDetail.html View File

@@ -230,7 +230,6 @@
</tr> </tr>
{{/if}} {{/if}}
</table> </table>

<div style="display: none;" id="swiperType" class="swiperInput"> <div style="display: none;" id="swiperType" class="swiperInput">
<table> <table>
{{if signup == 1}} {{if signup == 1}}


Loading…
Cancel
Save