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"> <scroll-view scroll-y @scrolltolower="search">
<view class="card" v-for="(v,k) in list" :key="k"> <view class="card" v-for="(v,k) in list" :key="k">
<view class="info" @click="reDetail(v.id)"> <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> <view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image> </u-image>
<view class="detail"> <view class="detail">

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

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

Loading…
Cancel
Save