|
|
|
@ -63,6 +63,16 @@
|
|
|
|
|
<u-image :src="staticImage.feedUpload" |
|
|
|
|
mode="widthFix" width="130rpx" height="130rpx"></u-image> |
|
|
|
|
</uv-upload> |
|
|
|
|
<view class="row"> |
|
|
|
|
<view class="col-3" v-for="item in detail.feedlist.meal_imgs"> |
|
|
|
|
<view class="" v-if="item.type === 'image'" style="margin-right:10rpx;"> |
|
|
|
|
<u-image mode="aspectFill" width="100%" height="200rpx" :src="item.url" @click="showImage(item.url)"></u-image> |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-else> |
|
|
|
|
<video :src="item.url" style="height:200rpx;width:100%;"></video> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-collapse-item> |
|
|
|
|
|
|
|
|
|
</u-collapse> |
|
|
|
@ -88,6 +98,16 @@
|
|
|
|
|
<u-image :src="staticImage.feedUpload" |
|
|
|
|
mode="widthFix" width="130rpx" height="130rpx"></u-image> |
|
|
|
|
</uv-upload> |
|
|
|
|
<view class="row"> |
|
|
|
|
<view class="col-3" v-for="item in detail.feedlist.food_imgs"> |
|
|
|
|
<view class="" v-if="item.type === 'image'" style="margin-right:10rpx;"> |
|
|
|
|
<u-image mode="aspectFill" width="100%" height="200rpx" :src="item.url" @click="showImage(item.url)"></u-image> |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-else> |
|
|
|
|
<video :src="item.url" style="height:200rpx;width:100%;"></video> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-collapse-item> |
|
|
|
|
|
|
|
|
|
</u-collapse> |
|
|
|
@ -113,6 +133,16 @@
|
|
|
|
|
<u-image :src="staticImage.feedUpload" |
|
|
|
|
mode="widthFix" width="130rpx" height="130rpx"></u-image> |
|
|
|
|
</uv-upload> |
|
|
|
|
<view class="row"> |
|
|
|
|
<view class="col-3" v-for="item in detail.feedlist.snack_imgs"> |
|
|
|
|
<view class="" v-if="item.type === 'image'" style="margin-right:10rpx;"> |
|
|
|
|
<u-image mode="aspectFill" width="100%" height="200rpx" :src="item.url" @click="showImage(item.url)"></u-image> |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-else> |
|
|
|
|
<video :src="item.url" style="height:200rpx;width:100%;"></video> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-collapse-item> |
|
|
|
|
|
|
|
|
|
</u-collapse> |
|
|
|
@ -138,6 +168,16 @@
|
|
|
|
|
<u-image :src="staticImage.feedUpload" |
|
|
|
|
mode="widthFix" width="130rpx" height="130rpx"></u-image> |
|
|
|
|
</uv-upload> |
|
|
|
|
<view class="row"> |
|
|
|
|
<view class="col-3" v-for="item in detail.feedlist.drug_imgs"> |
|
|
|
|
<view class="" v-if="item.type === 'image'" style="margin-right:10rpx;"> |
|
|
|
|
<u-image mode="aspectFill" width="100%" height="200rpx" :src="item.url" @click="showImage(item.url)"></u-image> |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-else> |
|
|
|
|
<video :src="item.url" style="height:200rpx;width:100%;"></video> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-collapse-item> |
|
|
|
|
|
|
|
|
|
</u-collapse> |
|
|
|
@ -163,6 +203,16 @@
|
|
|
|
|
<u-image :src="staticImage.feedUpload" |
|
|
|
|
mode="widthFix" width="130rpx" height="130rpx"></u-image> |
|
|
|
|
</uv-upload> |
|
|
|
|
<view class="row"> |
|
|
|
|
<view class="col-3" v-for="item in detail.feedlist.note_imgs"> |
|
|
|
|
<view class="" v-if="item.type === 'image'" style="margin-right:10rpx;"> |
|
|
|
|
<u-image mode="aspectFill" width="100%" height="200rpx" :src="item.url" @click="showImage(item.url)"></u-image> |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-else> |
|
|
|
|
<video :src="item.url" style="height:200rpx;width:100%;"></video> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-collapse-item> |
|
|
|
|
|
|
|
|
|
</u-collapse> |
|
|
|
@ -188,6 +238,16 @@
|
|
|
|
|
<u-image :src="staticImage.feedUpload" |
|
|
|
|
mode="widthFix" width="130rpx" height="130rpx"></u-image> |
|
|
|
|
</uv-upload> |
|
|
|
|
<view class="row"> |
|
|
|
|
<view class="col-3" v-for="item in detail.feedlist.goods_imgs"> |
|
|
|
|
<view class="" v-if="item.type === 'image'" style="margin-right:10rpx;"> |
|
|
|
|
<u-image mode="aspectFill" width="100%" height="200rpx" :src="item.url" @click="showImage(item.url)"></u-image> |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-else> |
|
|
|
|
<video :src="item.url" style="height:200rpx;width:100%;"></video> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-collapse-item> |
|
|
|
|
|
|
|
|
|
</u-collapse> |
|
|
|
@ -213,6 +273,16 @@
|
|
|
|
|
<u-image :src="staticImage.feedUpload" |
|
|
|
|
mode="widthFix" width="130rpx" height="130rpx"></u-image> |
|
|
|
|
</uv-upload> |
|
|
|
|
<view class="row"> |
|
|
|
|
<view class="col-3" v-for="item in detail.feedlist.line_imgs"> |
|
|
|
|
<view class="" v-if="item.type === 'image'" style="margin-right:10rpx;"> |
|
|
|
|
<u-image mode="aspectFill" width="100%" height="200rpx" :src="item.url" @click="showImage(item.url)"></u-image> |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-else> |
|
|
|
|
<video :src="item.url" style="height:200rpx;width:100%;"></video> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-collapse-item> |
|
|
|
|
|
|
|
|
|
</u-collapse> |
|
|
|
@ -238,6 +308,16 @@
|
|
|
|
|
<u-image :src="staticImage.feedUpload" |
|
|
|
|
mode="widthFix" width="130rpx" height="130rpx"></u-image> |
|
|
|
|
</uv-upload> |
|
|
|
|
<view class="row"> |
|
|
|
|
<view class="col-3" v-for="item in detail.feedlist.other_imgs"> |
|
|
|
|
<view class="" v-if="item.type === 'image'" style="margin-right:10rpx;"> |
|
|
|
|
<u-image mode="aspectFill" width="100%" height="200rpx" :src="item.url" @click="showImage(item.url)"></u-image> |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-else> |
|
|
|
|
<video :src="item.url" style="height:200rpx;width:100%;"></video> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-collapse-item> |
|
|
|
|
|
|
|
|
|
</u-collapse> |
|
|
|
@ -293,6 +373,11 @@
|
|
|
|
|
</MzButton> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<u-overlay :show="imageShow" @click="imageShow = false"> |
|
|
|
|
<view class="" style="display:flex;align-items: center;justify-content:center;width:100%;height:100vh;"> |
|
|
|
|
<u-image mode="widthFix" :src="imageUrl" height="auto" width="100vw"></u-image> |
|
|
|
|
</view> |
|
|
|
|
</u-overlay> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
@ -318,6 +403,8 @@
|
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
imageShow:false, |
|
|
|
|
imageUrl:'', |
|
|
|
|
title: 'Hello', |
|
|
|
|
loading: true, |
|
|
|
|
type:'detail', |
|
|
|
@ -375,6 +462,10 @@
|
|
|
|
|
this.getFeedLog(options.pet_id); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
showImage(url){ |
|
|
|
|
this.imageUrl = url; |
|
|
|
|
this.imageShow = true; |
|
|
|
|
}, |
|
|
|
|
redirtTo(url){ |
|
|
|
|
uni.redirectTo({ |
|
|
|
|
url:url |
|
|
|
@ -439,6 +530,7 @@
|
|
|
|
|
this.detail.feedlist = feedlist; |
|
|
|
|
} |
|
|
|
|
this.detail = data.data; |
|
|
|
|
if(this.type !== 'detail'){ |
|
|
|
|
let images = [ |
|
|
|
|
'meal_imgs', |
|
|
|
|
'food_imgs', |
|
|
|
@ -452,6 +544,7 @@
|
|
|
|
|
images.forEach((item,index) => { |
|
|
|
|
that.uploadShow(data.data.feedlist[item],item); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|