Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
339f7bbd5a
@ -39,8 +39,11 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="add">附件文件
|
<view class="add">附件文件
|
||||||
<image v-if="list.videoUrl" :src="baseurl+list.videoUrl" mode=""></image>
|
<view class="imageitem">
|
||||||
|
<image v-for="(item, index) in url" :key="index" :src="item" mode="" @click="clickImg"></image>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -49,33 +52,49 @@
|
|||||||
import {
|
import {
|
||||||
consultationlnfo,
|
consultationlnfo,
|
||||||
} from '@/api/seekadvicefrom/seekadvicefrom.js';
|
} from '@/api/seekadvicefrom/seekadvicefrom.js';
|
||||||
|
import baseurl from '@/api/baseurl.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
baseurl: '',
|
||||||
id: '',
|
id: '',
|
||||||
list: [],
|
list: [],
|
||||||
status: '',
|
status: '',
|
||||||
|
fileUrls: [],
|
||||||
|
url: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
console.log(options, '859')
|
this.baseurl = baseurl;
|
||||||
this.id = options.item
|
this.id = options.item
|
||||||
this.status = uni.getStorageInfoSync('status')
|
this.status = uni.getStorageInfoSync('status')
|
||||||
this.info()
|
this.info()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
clickImg() {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: this.url, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
|
||||||
|
current: '', // 当前显示图片的http链接,默认是第一个
|
||||||
|
success: function(res) {},
|
||||||
|
fail: function(res) {},
|
||||||
|
complete: function(res) {},
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
back() {
|
back() {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
info() {
|
info() {
|
||||||
|
this.url = []
|
||||||
consultationlnfo(this.id).then(res => {
|
consultationlnfo(this.id).then(res => {
|
||||||
console.log(res)
|
res.data.fileUrls.forEach(e => {
|
||||||
|
this.url.push(baseurl + e)
|
||||||
|
})
|
||||||
this.list = res.data
|
this.list = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -125,14 +144,28 @@
|
|||||||
height: 600rpx;
|
height: 600rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
line-height: 120rpx;
|
line-height: 120rpx;
|
||||||
position: relative;
|
// background-color: red;
|
||||||
|
// position: relative;
|
||||||
|
|
||||||
image {
|
.imageitem {
|
||||||
position: absolute;
|
width: 100%;
|
||||||
top: 20%;
|
display: flex;
|
||||||
width: 300rpx;
|
justify-content: flex-start;
|
||||||
height: 300rpx;
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
// position: absolute;
|
||||||
|
|
||||||
|
image {
|
||||||
|
display: inline-block;
|
||||||
|
// position: absolute;
|
||||||
|
// left: 0%;
|
||||||
|
// top: 20%;
|
||||||
|
width: 33%;
|
||||||
|
height: 200rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user