|
|
|
@ -63,16 +63,6 @@
|
|
|
|
|
<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 :fade="false" 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> |
|
|
|
@ -98,16 +88,6 @@
|
|
|
|
|
<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 :fade="false" 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> |
|
|
|
@ -133,16 +113,6 @@
|
|
|
|
|
<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 :fade="false" 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> |
|
|
|
@ -168,16 +138,6 @@
|
|
|
|
|
<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 :fade="false" 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> |
|
|
|
@ -203,16 +163,6 @@
|
|
|
|
|
<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 :fade="false" 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,16 +188,6 @@
|
|
|
|
|
<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 :fade="false" 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> |
|
|
|
@ -273,16 +213,6 @@
|
|
|
|
|
<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 :fade="false" 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> |
|
|
|
@ -308,16 +238,6 @@
|
|
|
|
|
<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 :fade="false" 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> |
|
|
|
@ -399,7 +319,9 @@
|
|
|
|
|
MzButton |
|
|
|
|
}, |
|
|
|
|
onShow(){ |
|
|
|
|
this.feedLog(); |
|
|
|
|
if(this.type === 'detail'){ |
|
|
|
|
this.getFeedLog(this.pet_id); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onReady() { |
|
|
|
|
uni.$u.sleep(100).then(() => { |
|
|
|
@ -536,7 +458,7 @@
|
|
|
|
|
this.detail.feedlist = feedlist; |
|
|
|
|
} |
|
|
|
|
this.detail = data.data; |
|
|
|
|
if(this.type !== 'detail'){ |
|
|
|
|
// if(this.type !== 'detail'){ |
|
|
|
|
let images = [ |
|
|
|
|
'meal_imgs', |
|
|
|
|
'food_imgs', |
|
|
|
@ -550,7 +472,7 @@
|
|
|
|
|
images.forEach((item,index) => { |
|
|
|
|
that.uploadShow(data.data.feedlist[item],item); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|