ソースを参照

产权交易

rongxin_prod
庞东旭 2年前
コミット
abf79966a5
3個のファイルの変更104行の追加34行の削除
  1. +6
    -6
      src/utils/request.js
  2. +97
    -27
      src/views/project/projectDetail.vue
  3. +1
    -1
      src/views/sunVillage_info/list_signature.vue

+ 6
- 6
src/utils/request.js ファイルの表示

@@ -79,15 +79,15 @@ service.interceptors.response.use(res => {
} }
} catch (e) { console.log(e); } } catch (e) { console.log(e); }


if (window.location.href.indexOf('lawEnforcement') != -1) {
if (window.location.href.indexOf('/lawEnforcement') != -1) {
window.location.href = '/lawEnforcement/login'; window.location.href = '/lawEnforcement/login';
} else if (window.location.href.indexOf('authenticRight') != -1) {
} else if (window.location.href.indexOf('/authenticRight') != -1) {
window.location.href = '/authenticRight/login'; window.location.href = '/authenticRight/login';
} else if (window.location.href.indexOf('homesteadSurvey') != -1) {
} else if (window.location.href.indexOf('/homesteadSurvey') != -1) {
window.location.href = '/homesteadLogin'; window.location.href = '/homesteadLogin';
} else if (window.location.href.indexOf('onlineHome') != -1) {
} else if (window.location.href.indexOf('/onlineHome') != -1) {
window.location.href = '/zjdLogin'; window.location.href = '/zjdLogin';
} else if (window.location.href.indexOf('yinnong') != -1) {
} else if (window.location.href.indexOf('/yinnong') != -1) {
window.location.href = '/yinnongLogin'; window.location.href = '/yinnongLogin';
} else if (window.location.href.indexOf('/sunVillage_info/') != -1) { } else if (window.location.href.indexOf('/sunVillage_info/') != -1) {
window.location.href = '/sunVillage_info/login'; window.location.href = '/sunVillage_info/login';
@@ -95,7 +95,7 @@ service.interceptors.response.use(res => {
window.location.href = '/sunVillage/login'; window.location.href = '/sunVillage/login';
} else if (window.location.href.indexOf('/homestead/') != -1) { } else if (window.location.href.indexOf('/homestead/') != -1) {
window.location.href = '/homestead/login'; window.location.href = '/homestead/login';
}else if (window.location.href.indexOf('agriculturalTrusteeship') != -1){
}else if (window.location.href.indexOf('/agriculturalTrusteeship') != -1){
window.location.href = '/agriculturalTrusteeship/login'; window.location.href = '/agriculturalTrusteeship/login';
} else { } else {
window.location.href = '/login'; window.location.href = '/login';


+ 97
- 27
src/views/project/projectDetail.vue ファイルの表示

@@ -502,14 +502,28 @@ export default {
} }
}) })
}); });
getBiddingList(this.id).then(response =>{
this.biddinglistInformation = response.rows
this.biddinglistInformationLength = response.total
if (response.rows.length>0&&this.detail.ladderPrice){
this.price = response.rows[0].money+this.detail.ladderPrice
}
var that = this;
getBiddingList(that.id).then(response =>{
that.biddinglistInformation = response.rows
that.biddinglistInformationLength = response.total
if (response.rows.length>0&&that.detail.ladderPrice){
console.log(that.detail.biddingDirect)
if (that.price == 0){return;}
if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') {
that.price = response.rows[0].money - that.detail.ladderPrice
}else{
that.price = response.rows[0].money + that.detail.ladderPrice
}


}
}); });
setInterval(function () {
getBiddingList(that.id).then(response =>{
that.biddinglistInformation = response.rows
that.biddinglistInformationLength = response.total
});
},1000)

}, },
offer(){ offer(){


@@ -539,7 +553,7 @@ export default {
if (this.detail.biddingType=='阶梯竞价'||this.detail.biddingType=='公开竞价'){ if (this.detail.biddingType=='阶梯竞价'||this.detail.biddingType=='公开竞价'){
if (this.biddinglistInformation.length>1){ if (this.biddinglistInformation.length>1){
//判断用户出价不能高于当前出价最低价格 //判断用户出价不能高于当前出价最低价格
if(this.biddinglistInformation[0].money < this.price){
if(this.biddinglistInformation[0].money <= this.price){
this.$toast({ this.$toast({
icon: 'fail', // 找到自己需要的图标 icon: 'fail', // 找到自己需要的图标
message: '出价不能高于当前出价最低价格', message: '出价不能高于当前出价最低价格',
@@ -567,7 +581,7 @@ export default {
if (this.detail.biddingType=='阶梯竞价'||this.detail.biddingType=='公开竞价'){ if (this.detail.biddingType=='阶梯竞价'||this.detail.biddingType=='公开竞价'){
if (this.biddinglistInformation.length>1){ if (this.biddinglistInformation.length>1){
//判断用户出价不能高于当前出价最低价格 //判断用户出价不能高于当前出价最低价格
if(this.biddinglistInformation[0].money > this.price){
if(this.biddinglistInformation[0].money >= this.price){
this.$toast({ this.$toast({
icon: 'fail', // 找到自己需要的图标 icon: 'fail', // 找到自己需要的图标
message: '出价不能低于当前出价最高价格', message: '出价不能低于当前出价最高价格',
@@ -598,7 +612,7 @@ export default {
message: '出价成功', message: '出价成功',
duration:"1000", duration:"1000",
onClose:function(){ onClose:function(){
// _this.reload()
_this.reload()
} }
}) })


@@ -607,8 +621,8 @@ export default {
}, },
add(){ add(){
if (this.detail.biddingDirect == '反向竞价'){ if (this.detail.biddingDirect == '反向竞价'){
if (this.biddinglistInformation.length<=1){
if(this.detail.price<this.price){
if (this.biddinglistInformation.length<1){
if(this.detail.price <= this.price){
this.$toast({ this.$toast({
icon: 'fail', // 找到自己需要的图标 icon: 'fail', // 找到自己需要的图标
message: '出价不能高于挂牌价格', message: '出价不能高于挂牌价格',
@@ -619,7 +633,8 @@ export default {
return; return;
} }
}else{ }else{
if(this.biddinglistInformation[0].money<=this.price){

if(this.biddinglistInformation[0].money <= this.price){
this.$toast({ this.$toast({
icon: 'fail', // 找到自己需要的图标 icon: 'fail', // 找到自己需要的图标
message: '出价不能高于当前出价最低价格', message: '出价不能高于当前出价最低价格',
@@ -655,30 +670,85 @@ export default {
} }
} }
} }
console.log(this.price == null)
this.price == null?this.price = 0:this.price = this.price;
this.detail.ladderPrice?this.price=parseInt(this.price)+parseInt(this.detail.ladderPrice):this.price += 1 this.detail.ladderPrice?this.price=parseInt(this.price)+parseInt(this.detail.ladderPrice):this.price += 1
}, },
sub(){ sub(){
if(this.detail.ladderPrice){
if((this.price-this.detail.ladderPrice)>this.biddinglistInformation[0].money){
this.price-=this.detail.ladderPrice
if (this.detail.biddingDirect == '反向竞价'){
if (this.biddinglistInformation.length<1){
if(this.detail.price<=this.price){
this.$toast({
icon: 'fail', // 找到自己需要的图标
message: '出价不能高于挂牌价格',
duration:"1000",
onClose:function(){
}
})
return;
}
}else{ }else{
this.$toast({
icon: 'error', // 找到自己需要的图标
message: '出价不能低于当前最高价',
duration:"1000",
})
if(this.biddinglistInformation[0].money<this.price){
this.$toast({
icon: 'fail', // 找到自己需要的图标
message: '出价不能高于当前出价最低价格',
duration:"1000",
onClose:function(){
}
})
return;
}
} }
}else{ }else{
if((this.price-1)>this.biddinglistInformation[0].money){
this.price-=1
if (this.biddinglistInformation.length<1){
if(this.detail.price>=this.price){
this.$toast({
icon: 'fail', // 找到自己需要的图标
message: '出价不能低于挂牌价格',
duration:"1000",
onClose:function(){
}
})
return;
}
}else{ }else{
this.$toast({
icon: 'error', // 找到自己需要的图标
message: '出价不能低于当前最高价',
duration:"1000",
})
if(this.biddinglistInformation[0].money>=this.price){
this.$toast({
icon: 'fail', // 找到自己需要的图标
message: '出价不能低于当前出价最高价格',
duration:"1000",
onClose:function(){
}
})
return;
}
} }
} }

this.price == null?this.price = 0:this.price = this.price;
if (this.price == 0)return;
this.detail.ladderPrice?this.price=parseInt(this.price)-parseInt(this.detail.ladderPrice):this.price -= 1
// if(this.detail.ladderPrice){
// if((this.price-this.detail.ladderPrice)>this.biddinglistInformation[0].money){
// this.price-=this.detail.ladderPrice
// }else{
// this.$toast({
// icon: 'error', // 找到自己需要的图标
// message: '出价不能低于当前最高价',
// duration:"1000",
// })
// }
// }else{
// if((this.price-1)>this.biddinglistInformation[0].money){
// this.price-=1
// }else{
// this.$toast({
// icon: 'error', // 找到自己需要的图标
// message: '出价不能低于当前最高价',
// duration:"1000",
// })
// }
// }
}, },
timerChange(value){ timerChange(value){
let d = value.days; let d = value.days;


+ 1
- 1
src/views/sunVillage_info/list_signature.vue ファイルの表示

@@ -45,7 +45,7 @@
<p>预览</p> <p>预览</p>
</div> </div>
<div class="opera_btn" v-if="item.signingMode == '线上' && item.isArchive == '是' "> <div class="opera_btn" v-if="item.signingMode == '线上' && item.isArchive == '是' ">
<a :href="'/api/profile/download'+item.contractPdf" style="color: #333333">
<a :href="'/api/profile/download/'+item.contractPdf" style="color: #333333">
<img src="../../assets/images/sunVillage_info/signature_icon_04.png" alt="" width="35"> <img src="../../assets/images/sunVillage_info/signature_icon_04.png" alt="" width="35">
<p>电子合同</p> <p>电子合同</p>
</a> </a>


読み込み中…
キャンセル
保存