Explorar el Código

产权交易

rongxin_prod
庞东旭 hace 2 años
padre
commit
befbab6c65
Se han modificado 2 ficheros con 25 adiciones y 4 borrados
  1. +13
    -3
      src/views/biddingHall/index.vue
  2. +12
    -1
      src/views/user/supply/supplyAdd.vue

+ 13
- 3
src/views/biddingHall/index.vue Ver fichero

@@ -125,7 +125,17 @@
<span style="color: #666666">距竞价结束</span><span>{{timeData.days}}天{{timeData.hours}}时{{timeData.minutes}}分{{timeData.seconds}}秒</span>
</template>
</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-row>
</van-list>
@@ -222,9 +232,9 @@ export default {
time = endDate-nowDate>0?endDate-nowDate:0
}
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{
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){


+ 12
- 1
src/views/user/supply/supplyAdd.vue Ver fichero

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

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

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


Cargando…
Cancelar
Guardar