diff --git a/src/views/biddingHall/index.vue b/src/views/biddingHall/index.vue index 7cde830e..511d51bc 100644 --- a/src/views/biddingHall/index.vue +++ b/src/views/biddingHall/index.vue @@ -115,7 +115,7 @@ finished-text="没有更多了" @load="onL" > - + {{item.content}} @@ -156,14 +156,13 @@ export default { infoList:[], value1: '', value2: '标的物位置', - activeId: 1, + activeId: null, activeIndex: 0, value3: '', value:"", info:[], //标的物所在地 - deptListOption: [ - ], + deptListOption: [], option3: [ { text: '竞价状态', value: '' }, { text: '全部', value: '全部' }, @@ -178,7 +177,7 @@ export default { created(){ this.getDicts("project_type").then(response => { response.data.map(item => { - this.projectTypeOption.push({ value:item.dictCode, text: item.dictLabel}); + this.projectTypeOption.push({ value:item.dictValue, text: item.dictLabel}); }); }); getDeptList().then(response => { @@ -199,10 +198,14 @@ export default { }); }, methods:{ + goDetail(id){ + console.log(id) + this.$router.push({path:'project/projectDetail',query:{id:id}}) + }, getList(){ let queryDatas = { - deptId: this.value1, - projectNumber:this.activeId, + deptId: this.activeId, + projectNumber:this.value1, projectShowStatus:this.value3 } getBiddingList(queryDatas).then(response =>{ @@ -214,9 +217,9 @@ export default { if(endDate>nowDate){ time = endDate-nowDate>0?endDate-nowDate:0 } - return{content:item.projectName,deadline:time,currentPrice:item.price,priceUnit:item.unit} + return{content:item.projectName,deadline:time,currentPrice:item.price,priceUnit:item.unit,id:item.id} }else { - return{content:item.projectName,deadline:0,currentPrice:item.price,priceUnit:item.unit} + return{content:item.projectName,deadline:0,currentPrice:item.price,priceUnit:item.unit,id:item.id} } }) @@ -226,6 +229,7 @@ export default { }, clickItem(data){ + console.log(data) if(data.text==this.value2){ this.activeId=1 this.value2='标的物位置' diff --git a/src/views/index.vue b/src/views/index.vue index 1e882557..ee96a49f 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -6,7 +6,7 @@ 农村产权交易平台 - +

{{item.title}}

diff --git a/src/views/login.vue b/src/views/login.vue index 5b4d4ec2..6e8d715f 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -71,7 +71,8 @@ {{ computeTime > 0 ? `(${computeTime}s)已发送` : "获取验证码" }}状态 出价时间 - + {{ item.userAccount }} {{ item.userName }} {{ item.money}} @@ -205,18 +205,18 @@
- + - +

出价

- +

{{price}}元

- +
@@ -468,11 +468,15 @@ export default { }); getBiddingList(this.id).then(response =>{ this.biddinglistInformation = response.rows + if (response.rows.length>0&&this.detail.ladderPrice){ + this.price = response.rows[0].money+this.detail.ladderPrice + } + }); }, offer(){ - if (this.price==''||this.price<1||this.price == null){ + if (this.price==''||this.price==0||this.price<0||this.price == null){ this.$toast({ icon: 'fail', // 找到自己需要的图标 message: '请输入出价金额', @@ -483,26 +487,52 @@ export default { return; } if (this.detail.biddingDirect == '递减竞价'){ - if(this.detail.pricethis.price){ - this.$toast({ - icon: 'fail', // 找到自己需要的图标 - message: '出价不能低于挂牌价', - duration:"1000", - onClose:function(){ - } - }) - return; + if (this.biddinglistInformation.length<1){ + if(this.detail.price>this.price){ + this.$toast({ + icon: 'fail', // 找到自己需要的图标 + message: '出价不能低于挂牌价格', + duration:"1000", + onClose:function(){ + } + }) + return; + } + }else{ + if(this.biddinglistInformation[0].money>this.price){ + this.$toast({ + icon: 'fail', // 找到自己需要的图标 + message: '出价不能低于当前出价最高价格', + duration:"1000", + onClose:function(){ + } + }) + return; + } } } let data= { @@ -531,12 +561,56 @@ export default { }) }, add(){ - if (this.detail.biddingDirect == '反向竞价'){ - if(this.detail.pricethis.price){ + this.$toast({ + icon: 'fail', // 找到自己需要的图标 + message: '出价不能低于挂牌价格', + duration:"1000", + onClose:function(){ + } + }) + return; + } + }else{ + if(this.biddinglistInformation[0].money>this.price){ + this.$toast({ + icon: 'fail', // 找到自己需要的图标 + message: '出价不能低于当前出价最高价格', + duration:"1000", + onClose:function(){ + } + }) + return; + } } } - this.detail.ladderPrice?this.price=this.price+this.detail.ladderPrice:this.price+=1 + this.detail.ladderPrice?this.price=parseInt(this.price)+parseInt(this.detail.ladderPrice):this.price += 1 }, sub(){ if(this.detail.ladderPrice){ diff --git a/src/views/project/signUp.vue b/src/views/project/signUp.vue index 622ee185..811b5b48 100644 --- a/src/views/project/signUp.vue +++ b/src/views/project/signUp.vue @@ -120,6 +120,7 @@ export default { projectName:this.$route.query.projectName, bankAddress:"", bankCardNum:"", + bankCardName:"", idCardNum:"", phone:"", memberId:"", diff --git a/src/views/register/companyRegister.vue b/src/views/register/companyRegister.vue index 51e79819..f208c699 100644 --- a/src/views/register/companyRegister.vue +++ b/src/views/register/companyRegister.vue @@ -50,7 +50,7 @@
-

我已阅读并同意《农村产权交易信息服务平台会员注册协议》

+ 立即注册
@@ -110,8 +110,25 @@ export default { }, getSubmit(){ console.log(this.form) + if (this.form.password!= this.confirmPassWord){ + this.$toast({ + icon: 'error', // 找到自己需要的图标 + message: '两次密码输入不一致', + duration:"2000", + onClose:function(){ + } + }) + return; + } userRegister(this.form).then((res) => { - console.log(res) + this.$toast({ + icon: 'success', // 找到自己需要的图标 + message: '注册成功', + duration:"2000", + onClose:function(){ + this.$router.push({path: '/login'}) + } + }) }); } }, diff --git a/src/views/register/index.vue b/src/views/register/index.vue index 639b7520..ebef93d8 100644 --- a/src/views/register/index.vue +++ b/src/views/register/index.vue @@ -13,7 +13,7 @@

农村产权交易平台

-

/注册须知/

+

/ 注册须知 /

为营造公开、公平、公正的网络交易环境,维护农村产权交易平台(以下简称平台)会员秩序,确保网络交易的顺利进行,特将有关事项告知如下:
diff --git a/src/views/register/userRegister.vue b/src/views/register/userRegister.vue index 16aaeaa1..21a86d23 100644 --- a/src/views/register/userRegister.vue +++ b/src/views/register/userRegister.vue @@ -40,7 +40,7 @@
-

我已阅读并同意《农村产权交易信息服务平台会员注册协议》

+ 立即注册
@@ -84,6 +84,16 @@ export default { }, getSubmit(){ console.log(this.form) + if (this.form.password!= this.confirmPassWord){ + this.$toast({ + icon: 'error', // 找到自己需要的图标 + message: '两次密码输入不一致', + duration:"2000", + onClose:function(){ + } + }) + return; + } userRegister(this.form).then((res) => { this.$toast({ icon: 'success', // 找到自己需要的图标 diff --git a/src/views/user/accountSetting/index.vue b/src/views/user/accountSetting/index.vue index 7ef99bf9..694457fa 100644 --- a/src/views/user/accountSetting/index.vue +++ b/src/views/user/accountSetting/index.vue @@ -7,7 +7,8 @@ placeholder @click-left="onClickLeft" /> - + +
@@ -20,6 +21,7 @@ export default { name: "Setting", data() { return { + memberType:1 }; }, created() { @@ -31,13 +33,6 @@ export default { }); }, methods: { - goInformation(){ - if(this.memberType == 1){ - window.location = 'userInformation'; - }else{ - window.location = 'companyInformation'; - } - } }, }; diff --git a/src/views/user/accountSetting/userInformation/companyInformation.vue b/src/views/user/accountSetting/userInformation/companyInformation.vue index b80ec2d5..2775cdbc 100644 --- a/src/views/user/accountSetting/userInformation/companyInformation.vue +++ b/src/views/user/accountSetting/userInformation/companyInformation.vue @@ -61,7 +61,8 @@ @confirm="onConfirm" /> - + + @@ -206,23 +207,28 @@ export default { submitForm(){ this.form.files = []; userUpdate(this.userForm).then(response => { - var imgList = []; - console.log(this.fileList) - for (var i = 0 ; i < this.fileList.length ; i++){ - if(this.fileList[i].url.indexOf('http') == -1&&this.fileList!=''){ - this.form.files.push(this.fileList[i].url); + if(response.code == 200) { + var imgList = []; + console.log(this.fileList) + for (var i = 0; i < this.fileList.length; i++) { + if (this.fileList[i].url.indexOf('http') == -1 && this.fileList != '') { + this.form.files.push(this.fileList[i].url); + } } + console.log(this.form.files) + base64Attach(this.form).then(responseSecond => { + if (responseSecond.code == 200) { + Dialog.confirm({ + title: '系统提示', + message: '修改成功', + confirmButtonText: '确定', + }) + .then(() => { + this.onClickLeft() + }) + } + }); } - console.log(this.form.files) - base64Attach(this.form).then(responseSecond => { - if(response.code == 200 && responseSecond.code == 200){ - Dialog.confirm({ - title: '系统提示', - message: '修改成功', - confirmButtonText: '确定', - }) - } - }); }); } }, diff --git a/src/views/user/signature/signatureDetail.vue b/src/views/user/signature/signatureDetail.vue index 10449af6..0822550a 100644 --- a/src/views/user/signature/signatureDetail.vue +++ b/src/views/user/signature/signatureDetail.vue @@ -18,10 +18,10 @@ - + 甲方信息 diff --git a/src/views/user/signature/signatureList.vue b/src/views/user/signature/signatureList.vue index 4c60c14d..c9a6719e 100644 --- a/src/views/user/signature/signatureList.vue +++ b/src/views/user/signature/signatureList.vue @@ -16,7 +16,7 @@ @load="getList" > - +
@@ -35,11 +35,11 @@