Browse Source

产权交易

rongxin_prod
庞东旭 2 years ago
parent
commit
befbab6c65
2 changed files with 25 additions and 4 deletions
  1. +13
    -3
      src/views/biddingHall/index.vue
  2. +12
    -1
      src/views/user/supply/supplyAdd.vue

+ 13
- 3
src/views/biddingHall/index.vue View File

@@ -125,7 +125,17 @@
<span style="color: #666666">距竞价结束</span><span>{{timeData.days}}天{{timeData.hours}}时{{timeData.minutes}}分{{timeData.seconds}}秒</span> <span style="color: #666666">距竞价结束</span><span>{{timeData.days}}天{{timeData.hours}}时{{timeData.minutes}}分{{timeData.seconds}}秒</span>
</template> </template>
</van-count-down> </van-count-down>
<van-row> <span style="color: #666666">当前价 </span><span style="font-size: 14px">{{item.currentPrice}}</span> <span>{{item.priceUnit}}</span></van-row>
<van-row>
<span style="color: #666666">当前价 </span>
<span style="font-size: 14px" v-if="item.biddingType=='自由竞价'&&item.deadline>0">
*
</span>
<span style="font-size: 14px" v-else>
{{item.money}}
</span>
<span v-if="item.money">{{item.priceUnit}}</span>
<span v-else>暂无出价</span>
</van-row>
</van-col> </van-col>
</van-row> </van-row>
</van-list> </van-list>
@@ -222,9 +232,9 @@ export default {
time = endDate-nowDate>0?endDate-nowDate:0 time = endDate-nowDate>0?endDate-nowDate:0
} }
console.log(time) console.log(time)
this.infoList.push({content:item.projectName,deadline:time,currentPrice:item.price,priceUnit:item.unit,id:item.id})
this.infoList.push({content:item.projectName,deadline:time,currentPrice:item.price,priceUnit:item.unit,id:item.id,money:item.money})
}else{ }else{
this.infoList.push({content:item.projectName,deadline:0,currentPrice:item.price,priceUnit:item.unit,id:item.id})
this.infoList.push({content:item.projectName,deadline:0,currentPrice:item.price,priceUnit:item.unit,id:item.id,money:item.money})
} }
}) })
if(this.infoList.length >= response.total){ if(this.infoList.length >= response.total){


+ 12
- 1
src/views/user/supply/supplyAdd.vue View File

@@ -92,6 +92,7 @@ export default {
methods: { methods: {
afterRead(file) { afterRead(file) {
// 此时可以自行将文件上传至服务器 // 此时可以自行将文件上传至服务器

for ( var i = 0 ; i < this.fileList.length ; i++){ for ( var i = 0 ; i < this.fileList.length ; i++){
if(this.fileList[i].url == undefined&&this.fileList!='') { if(this.fileList[i].url == undefined&&this.fileList!='') {
this.fileList[i] = {url:this.fileList[i].content, id: '', isImage: true}; this.fileList[i] = {url:this.fileList[i].content, id: '', isImage: true};
@@ -147,6 +148,11 @@ export default {
if(this.$route.query.type == 'update'){ if(this.$route.query.type == 'update'){
this.file.tableId = this.$route.query.id ; this.file.tableId = this.$route.query.id ;
updateDemand(this.form).then(response => { updateDemand(this.form).then(response => {
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
for (var i = 0 ; i < this.fileList.length ; i++){ for (var i = 0 ; i < this.fileList.length ; i++){
if(this.fileList[i].url.indexOf('http://') == -1&&this.fileList!=''){ if(this.fileList[i].url.indexOf('http://') == -1&&this.fileList!=''){
this.file.files.push(this.fileList[i].url); this.file.files.push(this.fileList[i].url);
@@ -168,9 +174,15 @@ export default {
}else{ }else{
userDemand(this.form).then(response => { userDemand(this.form).then(response => {
this.file.tableId = response.data; this.file.tableId = response.data;
this.$toast.loading({
message: "上传中...",
forbidClick: true,
duration: 0,
});
for(var i = 0 ; i < this.fileList.length ; i++){ for(var i = 0 ; i < this.fileList.length ; i++){
this.file.files.push(this.fileList[i].url); this.file.files.push(this.fileList[i].url);
} }

base64Attach(this.file).then(response => { base64Attach(this.file).then(response => {
if (response.code == 200){ if (response.code == 200){
Dialog.confirm({ Dialog.confirm({
@@ -179,7 +191,6 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
showCancelButton:false showCancelButton:false
}).then(() => { }).then(() => {
self.location=document.referrer;
}) })
} }
}); });


Loading…
Cancel
Save