|
@@ -1,10 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<view class="back-content">
|
|
<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 @click="showImg" v-for="(item,index) in infoData.backlogPhotoList" :key="index">
|
|
|
|
|
|
+ <swiper v-if="backlogPhotoList.length && status!='loading'" class="top-ad-swiper" :indicator-dots="false" :autoplay="true" :interval="5000" :duration="600" :circular="true">
|
|
|
|
+ <swiper-item @click="showImg" v-for="(item,index) in backlogPhotoList" :key="index">
|
|
<div class="swiper-item uni-bg-red">
|
|
<div class="swiper-item uni-bg-red">
|
|
- <u-image mode="aspectFit" width="750upx" height="400upx" :src="item.photoPath"></u-image>
|
|
|
|
|
|
+ <u-image mode="aspectFit" width="750upx" height="400upx" :src="item"></u-image>
|
|
</div>
|
|
</div>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
</swiper>
|
|
</swiper>
|
|
@@ -85,8 +85,10 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ status: 'loading',
|
|
backlogId: '', // 待办id
|
|
backlogId: '', // 待办id
|
|
infoData:{}, // 详情数据
|
|
infoData:{}, // 详情数据
|
|
|
|
+ backlogPhotoList: [], // 图片列表
|
|
numList: [],
|
|
numList: [],
|
|
comment: '', // 评论
|
|
comment: '', // 评论
|
|
isFocus: false // 评论键盘是否弹起
|
|
isFocus: false // 评论键盘是否弹起
|
|
@@ -100,24 +102,35 @@
|
|
methods: {
|
|
methods: {
|
|
// 图片预览
|
|
// 图片预览
|
|
showImg () {
|
|
showImg () {
|
|
- let arr = []
|
|
|
|
- this.infoData.backlogPhotoList.map(item=>{
|
|
|
|
- arr.push(item.photoPath)
|
|
|
|
- })
|
|
|
|
uni.previewImage({
|
|
uni.previewImage({
|
|
- urls: arr
|
|
|
|
|
|
+ urls: this.backlogPhotoList
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 获取详情数据
|
|
// 获取详情数据
|
|
getData (id) {
|
|
getData (id) {
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ title: '加载中,请稍后...'
|
|
|
|
+ })
|
|
|
|
+ this.status = 'loading'
|
|
getBackLogDetail({id:id}).then(res=>{
|
|
getBackLogDetail({id:id}).then(res=>{
|
|
- // console.log(res,'rrrrrrrr')
|
|
|
|
|
|
+ console.log(res,'rrrrrrrr')
|
|
if(res.status==200){
|
|
if(res.status==200){
|
|
this.infoData = res.data
|
|
this.infoData = res.data
|
|
|
|
+ let arr = []
|
|
|
|
+ this.infoData.backlogPhotoList.map(item=>{
|
|
|
|
+ if(item.photoPath) {
|
|
|
|
+ arr.push(item.photoPath)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.backlogPhotoList = arr
|
|
|
|
+ console.log(this.backlogPhotoList,'this.backlogPhotoList')
|
|
} else {
|
|
} else {
|
|
this.toashMsg(res.message)
|
|
this.toashMsg(res.message)
|
|
this.infoData = {}
|
|
this.infoData = {}
|
|
|
|
+ this.backlogPhotoList = []
|
|
}
|
|
}
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ this.status = 'nomore'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 获取进度数据
|
|
// 获取进度数据
|