|
@@ -2,7 +2,7 @@
|
|
|
<view class="back-content">
|
|
|
<!-- 轮播图 -->
|
|
|
<swiper v-if="infoData.backlogPhotoList && infoData.backlogPhotoList.length" class="top-ad-swiper" :indicator-dots="false" :autoplay="true" :interval="5000" :duration="600" :circular="true">
|
|
|
- <swiper-item v-for="(item,index) in infoData.backlogPhotoList" :key="index">
|
|
|
+ <swiper-item @click="showImg" v-for="(item,index) in infoData.backlogPhotoList" :key="index">
|
|
|
<div class="swiper-item uni-bg-red">
|
|
|
<u-image mode="aspectFit" width="750upx" height="400upx" :src="item.photoPath"></u-image>
|
|
|
</div>
|
|
@@ -98,10 +98,20 @@
|
|
|
this.getRecordData(option.id)
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 图片预览
|
|
|
+ showImg () {
|
|
|
+ let arr = []
|
|
|
+ this.infoData.backlogPhotoList.map(item=>{
|
|
|
+ arr.push(item.photoPath)
|
|
|
+ })
|
|
|
+ uni.previewImage({
|
|
|
+ urls: arr
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取详情数据
|
|
|
getData (id) {
|
|
|
getBackLogDetail({id:id}).then(res=>{
|
|
|
- console.log(res,'rrrrrrrr')
|
|
|
+ // console.log(res,'rrrrrrrr')
|
|
|
if(res.status==200){
|
|
|
this.infoData = res.data
|
|
|
} else {
|