Procházet zdrojové kódy

图片上传优化

wulanhaote
hbao před 4 roky
rodič
revize
4992f08919
1 změnil soubory, kde provedl 20 přidání a 9 odebrání
  1. +20
    -9
      src/views/homestead/index.vue

+ 20
- 9
src/views/homestead/index.vue Zobrazit soubor

@@ -435,14 +435,14 @@
<div class="statusQuo"> <div class="statusQuo">
<div class="picture" v-if="landInfoLookList.behindland == ''"></div> <div class="picture" v-if="landInfoLookList.behindland == ''"></div>
<div class="picture" v-if="landInfoLookList.behindland != ''"> <div class="picture" v-if="landInfoLookList.behindland != ''">
<img :src="landInfoLookList.behindland" />
<img :src="landInfoLookList.behindland" class="describe"/>
</div> </div>
<div class="describe">现<br />状<br />图<br />片</div> <div class="describe">现<br />状<br />图<br />片</div>
</div> </div>
<div class="statusQuo"> <div class="statusQuo">
<div class="picture" v-if="landInfoLookList.frontland == ''"></div> <div class="picture" v-if="landInfoLookList.frontland == ''"></div>
<div class="picture" v-if="landInfoLookList.frontland != ''"> <div class="picture" v-if="landInfoLookList.frontland != ''">
<img :src="landInfoLookList.frontland" />
<img :src="landInfoLookList.frontland" class="describe"/>
</div> </div>
<div class="describe">历<br />史<br />图<br />片</div> <div class="describe">历<br />史<br />图<br />片</div>
</div> </div>
@@ -734,7 +734,9 @@
:max-count="1" :max-count="1"
accept="image/gif, image/jpeg, image/png" accept="image/gif, image/jpeg, image/png"
> >
<img :src=houseInfoList.behindHouse alt="等待传图" class="imgPreview">
<div v-if="houseInfoList.behindHouse !=null">
<img :src=houseInfoList.behindHouse alt="等待传图">
</div>
</van-uploader> </van-uploader>
</div> </div>
</div> </div>
@@ -747,7 +749,9 @@
:max-count="1" :max-count="1"
accept="image/gif, image/jpeg, image/png" accept="image/gif, image/jpeg, image/png"
> >
<img :src=houseInfoList.frontHouse alt="等待传图" class="imgPreview">
<div v-if="houseInfoList.frontHouse != null">
<img :src=houseInfoList.frontHouse alt="等待传图">
</div>
</van-uploader> </van-uploader>
</div> </div>
</div> </div>
@@ -927,7 +931,9 @@
:max-count="1" :max-count="1"
accept="image/gif, image/jpeg, image/png" accept="image/gif, image/jpeg, image/png"
> >
<img :src=landInfoList.behindland alt="等待传图" class="imgPreview">
<div v-if="landInfoList.behindland !=null">
<img :src=landInfoList.behindland alt="等待传图">
</div>
</van-uploader> </van-uploader>
</div> </div>
</div> </div>
@@ -940,7 +946,9 @@
:max-count="1" :max-count="1"
accept="image/gif, image/jpeg, image/png" accept="image/gif, image/jpeg, image/png"
> >
<img :src=landInfoList.frontland alt="等待传图" class="imgPreview">
<div v-if="landInfoList.frontland !=null">
<img :src=landInfoList.frontland alt="等待传图">
</div>
</van-uploader> </van-uploader>
</div> </div>
</div> </div>
@@ -1252,11 +1260,14 @@ export default {
addNewPlot(type) { addNewPlot(type) {
this.farmlandEditSwitchVisbuleFun("hide"); this.farmlandEditSwitchVisbuleFun("hide");
this.landHomesteadEditVisbileFun("show"); this.landHomesteadEditVisbileFun("show");

//farmhouse农房 land农地 //farmhouse农房 land农地
if (type == "farmhouse") { if (type == "farmhouse") {
this.farmhouseStatus = 0; this.farmhouseStatus = 0;
this.houseInfoList.behindHouse =null;
this.houseInfoList.frontHouse =null;
} else if (type == "land") { } else if (type == "land") {
this.landInfoList.frontland =null;
this.landInfoList.behindland =null;
this.farmhouseStatus = 1; this.farmhouseStatus = 1;
} }
}, },
@@ -4097,8 +4108,8 @@ export default {
center no-repeat; center no-repeat;
background-size: 90% auto; background-size: 90% auto;
img { img {
width: 100%;
height: 100%;
width: 98%;
height: 90%;
} }
} }
.describe { .describe {


Načítá se…
Zrušit
Uložit