Browse Source

修改图片地址

master
邓宏 2 years ago
parent
commit
66a05b7b3e
  1. 2
      pages/massif/mana/plantPlan.vue
  2. 25
      uni_modules/d-form/components/d-form/d-form.vue

2
pages/massif/mana/plantPlan.vue

@ -111,7 +111,7 @@
<scroll-view scroll-y @scrolltolower="search">
<view class="card" v-for="(v,k) in list" :key="k">
<view class="info" @click="reDetail(v.id)">
<u-image :data-type="v.plantType" radius="20rpx" width="170rpx" height="140rpx" mode="aspectFill" src="https://cdn.uviewui.com/uview/album/1.jpg">
<u-image :data-type="v.plantType" radius="20rpx" width="170rpx" height="140rpx" mode="aspectFill" :src="`${host}/${v.images}`">
<view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image>
<view class="detail">

25
uni_modules/d-form/components/d-form/d-form.vue

@ -67,16 +67,18 @@
padding:20rpx;
min-height:260rpx;
margin-top:14rpx;
align-content: flex-start;
&/deep/ .u-upload__wrap__preview{
border-radius: 10rpx;
&>.u-upload__wrap__preview__image{
height:170rpx!important;
width:170rpx!important;
}
&>.u-upload__deletable{
width:30rpx;
height:30rpx;
&/deep/ .u-upload__wrap{
align-items: flex-start;
.u-upload__wrap__preview{
border-radius: 10rpx;
&>.u-upload__wrap__preview__image{
height:170rpx!important;
width:170rpx!important;
}
&>.u-upload__deletable{
width:30rpx;
height:30rpx;
}
}
}
.album{
@ -381,9 +383,6 @@ import {dataType} from 'black-knight/lib/config/tools'
setPickerCol.bind(this.$refs.picker)(this.columns[0]||[],this.value,1)
})
}
if(this.type=='upImg'){
window.the=this
}
},
methods:{
async afterRead(e){

Loading…
Cancel
Save